We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can someone please provide a query example which uses @skip or @include directive?
@skip
@include
The text was updated successfully, but these errors were encountered:
It's not a small example, but the @include directive is used here.
Sorry, something went wrong.
@dmitshur Thank you for your reply. so here is how i got it to work: using this schema
type Test { field1 String! field2 String! } type Query{ tests: [Test!]! }
the struct I used is:
var q struct { Test []struct { Field1 graphql.string IncludeField1 graphql.string `graphql:"@include(if:$f1)"` Field2 graphql.string IncludeField2 graphql.string `graphql:"@include(if:$f2)"` } } v := map[string]interface{ "f1": graphql.Boolean(true), "f2": graphql.Boolean(false), } client.Query(context.Background(), &q, v)
I would really appreciate a better solution.
No branches or pull requests
Can someone please provide a query example which uses
@skip
or@include
directive?The text was updated successfully, but these errors were encountered: