Skip to content

Why useQuery data is not exposed directly? #3409

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

You must be logged in to vote

Because you are selecting the data you need, nothing stops you from doing:

query {
  todos {}
  todo(id:1) {}
  authors {}
}

Then todos can't be directly accessible as you also need data.todo and data.authors

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
2 participants