Skip to content

TS cache.readFragment could have a wrong type return #1488

Answered by kitten
albertcito asked this question in Q&A
Discussion options

You must be logged in to vote

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 get Data, or if you're generating a typed fragment (which afaik no tool supports properly yet) you'll actually see your full type piped through

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@albertcito
Comment options

@lukasluecke
Comment options

Answer selected by albertcito
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