TS cache.readFragment could have a wrong type return #1488
Answered
by
kitten
albertcito
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
kitten
Mar 29, 2021
Replies: 1 comment 2 replies
-
That seems normal depending on what you've passed in. Assuming that that document isn't typed then the default return value is |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
albertcito
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That seems normal depending on what you've passed in. Assuming that that document isn't typed then the default return value is
Data
which only guarantees the system fields of types. It's a little suspicious that it's incomplete but either you'll getData
, or if you're generating a typed fragment (which afaik no tool supports properly yet) you'll actually see your full type piped through