Skip to content

Graphcache: querying from cache immediately after creating an entity #3397

Answered by JoviDeCroock
seanparmelee asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible that createUser has less fields than what getUser is asking for? Are both the __typename and id returned from createUser?

The reasons behind me asking is that this relies heavily on createUser writing everything correctly for getUser to resolve it.

As an alternative you could try using updateQuery on getUser and see if that does the trick, if it does there might be a discrepancy between the two.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kitten
Comment options

@seanparmelee
Comment options

@JoviDeCroock
Comment options

Answer selected by JoviDeCroock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants