Advanced Uses of Directives

Directives can influence how a GraphQL operation is interpreted or how schema metadata is represented. Built-in directives such as @include and @skip allow clients to conditionally request fields.

Custom directives can also be used for schema metadata, authorization patterns, caching hints, validation, or tooling. However, directives should not become a substitute for clear application architecture.