directive
Decorator to create a GraphQL operation directive.
Returns:
A StrawberryDirective object that can be used to customise a directive
Signature:
Parameters:
-
locations:
The locations where the directive can be used
- Type
-
List[DirectiveLocation]
-
description:
The GraphQL description of the directive
- Type
-
str | None
- Default
-
None
-
name:
The GraphQL name of the directive
- Type
-
str | None
- Default
-
None