Skip to content

How to cache fields that use @skip directives? #1038

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

You must be logged in to vote

Hm that's really odd. Graphcache is supposed to respect @skip just like GraphQL APIs do, so if the data isn't being skipped then it should be cached. We may need a small reproduction here to speed things along since we do have tests covering this case 🤔

That being said, is this a type? I've never seen @skip being added to an inline fragment that isn't on a type, so I was wondering whether that's actually valid as-is in standard GraphQL

Replies: 2 comments 2 replies

Comment options

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

@kitten
Comment options

Answer selected by gopeter
Comment options

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