Add reusable instructions to your GraphQL schema and queries without repeating the same logic everywhere.
Directives provide additional instructions that can change how parts of a GraphQL schema or query are interpreted. GraphQL includes built-in directives such as @skip and @include, and servers can also define custom directives for application-specific behavior.
Custom directives can be useful for concerns such as authorization, validation, formatting, or schema behavior. They are powerful because they let you attach reusable behavior directly to schema definitions or query selections.
What you'll walk away knowing