Join Slack
Powered by
Quick Question: What's the best way to update some...
# orm-help
e
Eric Bahr
02/05/2019, 11:11 PM
Quick Question: What's the best way to update something in-place with a mutation? Suppose I wanted to let users extend a comment. Is there anything better than querying the comment and then updating it with the results of the query?
h
huv1k
02/05/2019, 11:17 PM
You can use optimistic updates.
e
Eric Bahr
02/05/2019, 11:17 PM
Hm... What's that?
Eric Bahr
02/05/2019, 11:18 PM
https://www.apollographql.com/docs/react/features/optimistic-ui.html
h
huv1k
02/05/2019, 11:18 PM
Yep 🙂
e
Eric Bahr
02/05/2019, 11:19 PM
I'll take a look. Thanks
2
Views
Open in Slack
Previous
Next