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
The @Skipbuilt-in directive may be provided for fields, fragment spreads, and inline fragments, and allows for conditional exclusion during execution as described by the if argument.
The @includebuilt-in directive may be provided for fields, fragment spreads, and inline fragments, and allows for conditional inclusion during execution as described by the if argument.
The current implementation differs from the specs, as the content affected by these directives is instead being returned as null.
GraphQL query:
{
hero {
name@skip(if: true)
}
}
Response:
{
"data": {
"hero": {
"name": null
}
}
}
This works correctly when the directive is applied to the query itself:
GraphQL query:
{
hero@skip(if: true) {
name
}
}
Response:
{
"data": {}
}
The text was updated successfully, but these errors were encountered:
tiagonuneslx
changed the title
@include and @skip directives should exclude content, but instead it's resulting in null value (except if it's applied to the query)
@include and @skip directives should exclude content, but instead it's resulting null value (except if the directive is applied to the query)
Jan 30, 2023
tiagonuneslx
changed the title
@include and @skip directives should exclude content, but instead it's resulting null value (except if the directive is applied to the query)
@include and @skip directives should exclude content, but instead it's returning null value (except if the directive is applied to the query)
Jan 30, 2023
@skip specs:
@include specs:
The current implementation differs from the specs, as the content affected by these directives is instead being returned as null.
GraphQL query:
Response:
This works correctly when the directive is applied to the query itself:
GraphQL query:
Response:
{ "data": {} }
The text was updated successfully, but these errors were encountered: