Schema

Constructor:

Signature:

def __init__(
self,
query: Type | None = None,
mutation: Type | None = None,
subscription: Type | None = None,
directives: Iterable[Type] = (),
types: Iterable[Type] = (),
extensions: Iterable[Type[SchemaExtension] | SchemaExtension] = (),
execution_context_class: Type[GraphQLExecutionContext] | None = None,
config: StrawberryConfig | None = None,
scalar_overrides: Dict[object, Type | ScalarWrapper | ScalarDefinition] | None = None,
schema_directives: Iterable[object] = (),
enable_federation_2: bool = False,
) -> None:
...

Parameters:

  1. query:

    Type
    Type | None
    Default
    None
  2. mutation:

    Type
    Type | None
    Default
    None
  3. subscription:

    Type
    Type | None
    Default
    None
  4. directives:

    Type
    Iterable[Type]
    Default
    ()
  5. types:

    Type
    Iterable[Type]
    Default
    ()
  6. extensions:

    Type
    Iterable[Type[SchemaExtension] | SchemaExtension]
    Default
    ()
  7. execution_context_class:

    Type
    Type[GraphQLExecutionContext] | None
    Default
    None
  8. config:

    Type
    StrawberryConfig | None
    Default
    None
  9. scalar_overrides:

    Type
    Dict[object, Type | ScalarWrapper | ScalarDefinition] | None
    Default
    None
  10. schema_directives:

    Type
    Iterable[object]
    Default
    ()
  11. enable_federation_2:

    Type
    bool
    Default
    False

Methods:

Attributes:

  1. schema_directives:

  2. schema_directives_in_use:

    Type
    List[object]