interface
Annotates a class as a GraphQL Interface.
Similar to @strawberry.type , but for interfaces.
Returns:
The class.
Signature:
def interface( cls: T | None = None, name: str | None = None, description: str | None = None, directives: Sequence[object] | None = (),) -> : ...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
-
()