Skip to content
Discussion options

You must be logged in to vote

Thanks for opening this discussion @Frank-D. This is a reoccurring question in different shapes and conditions (e.g. #1117).

As I can see you have two questions in your example:

  1. Query result source: NETWORK --> NOT expected.
  2. Query result: success WITHOUT data (null result) !!!!! --> NOT expected

For the first question. The reason why it's fetching the query from the network is that you haven't cached the Query with the user field. The client can't assume that fetching user(authID: 12345) maps to the user with auth-id 12345. While it might intuitively make sense for us as developers, codifying such an assumption would be prone to bugs. E.g., consider the API where you're only allowed to …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Frank-D
Comment options

@budde377
Comment options

@Frank-D
Comment options

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