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

New rule: enforce a single mutation field #1128

Open
dotansimha opened this issue Aug 8, 2022 · 0 comments
Open

New rule: enforce a single mutation field #1128

dotansimha opened this issue Aug 8, 2022 · 0 comments
Labels

Comments

@dotansimha
Copy link
Member

By default, should work for the root level of Mutation:

mutation {
   something # valid
}
mutation {
   something # valid
   somethingElse # invalid
}

But also should be configurable to allow choosing the nesting level:

mutation {  # valid
   mutationGroup {
      doSomething
   }
}
mutation { #invalid
   mutationGroup {
      doSomething 
      doSomethingElse
   }
}
@dotansimha dotansimha changed the title New rule: enforce a single mutation New rule: enforce a single mutation field Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant