You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query ($noProducts: Boolean!) {
products@skip(if: $noProducts) {
id
}
}
With variables:
{ "noProducts": true }
Gives this response:
{
"data": {}
}
This will cause an error on normalize() becuse gql-cache thinks that there should be a field for products in the repsonse but it does not exist since the server skips it.
Note that @skip and @include are standard directives included in the specification:
GraphQL implementations should provide the @skip and @include directives.
The text was updated successfully, but these errors were encountered:
For example this query:
With variables:
Gives this response:
{ "data": {} }
This will cause an error on
normalize()
becuse gql-cache thinks that there should be a field forproducts
in the repsonse but it does not exist since the server skips it.Note that
@skip
and@include
are standard directives included in the specification:The text was updated successfully, but these errors were encountered: