GraphQL Directives

Directives in GraphQL allows you to create schemas that are readable, consice and maintainable. They are created using the @directive syntax.

type Schema { }

There are two different kinds of directives: schema-type directives and query-type directives. Each type applies in a different stage of the schema creation. Schema-type directives are applied during the creation of the schema and are invisible to the caller. They won't show up when introspecting the schema, for instance when using GraphiQL, and they can't be applied by the caller. Query-type directives, on the other hand, are availible to the caller and show up when introspecting the schema.

This will route