-
When I open view that fetches some data and then It's just for the sake of consistency and I think this is what people expect. The workaround I found is to explicitly request Thanks, I'm using the latest urql + graphcache |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
It's normal that That being said Graphcache and the document transform in |
Beta Was this translation helpful? Give feedback.
-
After upgrading to urql 2 and graphcache 4, I'm running into the same problem. The data includes I'm generating my queries via graphql-codegen. Do you know if there is a way to have it automatically add |
Beta Was this translation helpful? Give feedback.
It's normal that
urql
doesn't add__typename
automatically to the root type of the document. In general you shouldn't rely on this and instead should assume that it merely may be there unless you explicitly ask for it.That being said Graphcache and the document transform in
@urql/core
in general adds the__typename
field to any selection set except for the root selection set on your root types.