Skip to content
New issue

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

Top level fields with skip/include directives ignored #65

Closed
jeggy opened this issue Nov 28, 2019 · 0 comments · Fixed by #66
Closed

Top level fields with skip/include directives ignored #65

jeggy opened this issue Nov 28, 2019 · 0 comments · Fixed by #66

Comments

@jeggy
Copy link
Member

jeggy commented Nov 28, 2019

the directives are ignored if they are on top level fields.

Here's an example that would return both people and otherData:

query {
  people @skip(if: true) {
    ...
  }
  otherData @skip(if: false) {
    ...
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant