lone-anonymous-operation
✅ The "extends": "plugin:@graphql-eslint/operations-recommended" property in a configuration file
enables this rule.
- Category: Operations
- Rule name: @graphql-eslint/lone-anonymous-operation
- Requires GraphQL Schema: trueℹ️
- Requires GraphQL Operations: falseℹ️
A GraphQL document that contains an anonymous operation (the query short-hand) is only valid if it
contains only that one operation definition.
This rule is a wrapper around a
graphql-jsvalidation function.
Resources
Last updated on