AddValidationRules
This extension allows you add custom validation rules.
See
graphql.validation.rules.custom
for some custom rules that can be added from GraphQl-core.
Usage example:
API reference:
validation_rules: List[Type[ASTValidationRule]]
List of GraphQL validation rules.
More examples:
Adding a custom rule
Adding the NoDeprecatedCustomRule
from GraphQL-core
Adding the NoSchemaIntrospectionCustomRule
from GraphQL-core