Fork me on GitHub
#graphql
<
2019-05-06
>
rakowa02:05:04

Just to clarify, you're not using the mutation response data? I was hoping to, instead running a separate query.

lilactown02:05:57

I don’t use it directly, but I believe apollo does

rakowa02:05:57

Seems it would be more efficient, esp, if your mutation can respond with all the data you need to render.

lilactown02:05:29

apollo keeps a normalized cache of the data returned from the GraphQL endpoint, and will update queries that are observing it when one of their data dependencies change (e.g. from a mutation) from the cache

rakowa02:05:51

Also, I might need at least the _id to allow running the separate query.

lilactown02:05:14

I think that we don’t take advantage of that too much since our mutations are kind of weird.