-
I am building a large list of products where I can choose which columns I want to show: query GetArticleList(
$skipSomeColumn: Boolean = false
) {
articles {
nodes {
title
description
... @skip(if: $skipSomeColumn) {
someColumn
}
}
}
} The query works fine and returns only the data that the user wants to see. But I if navigate around the app and come back to the list (after the first successful fetch), all skippable fields are Is there a way to configure |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hm that's really odd. Graphcache is supposed to respect That being said, is this a type? I've never seen |
Beta Was this translation helpful? Give feedback.
-
Wow, that was fast! 😄 I wanted to build a test case today to create a proper issue, but it seems that everything is clear now |
Beta Was this translation helpful? Give feedback.
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