interface
Annotates a class as a GraphQL Interface.
Similar to @strawberry.type
, but for interfaces.
Returns:
The class.
Signature:
Parameters:
-
name:
The name of the GraphQL interface.
- Type
-
str | None
- Default
-
None
-
description:
The description of the GraphQL interface.
- Type
-
str | None
- Default
-
None
-
directives:
The directives of the GraphQL interface.
- Type
-
Sequence[object] | None
- Default
-
()