Open
Description
Currently SchemaDirectiveVisitor does two things:
- Its a base class for custom GraphQL directives.
- Its a manager class for directives, with
visit_schema_directives
andget_declared_directives
classmethods thatmake_executable_schema
uses to apply directives to the schema
We should introduce new abstraction called SchemaDirective
that extends SchemaVisitor
, but only adds directive-specific logic, and move management/schema visiting logic to utility functions. SchemaDirectiveVisitor
should then be deprecated.