strawberry.federation.Schema
Constructor:
Signature:
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,
Parameters:
-
- Type
-
Type | None
- Default
-
None
-
- Type
-
Type | None
- Default
-
None
-
- Type
-
Type | None
- Default
-
None
-
- Type
-
Iterable[Type]
- Default
-
()
-
- Type
-
Iterable[Type]
- Default
-
()
-
- Type
-
Iterable[Type[SchemaExtension] | SchemaExtension]
- Default
-
()
-
- Type
-
Type[GraphQLExecutionContext] | None
- Default
-
None
-
- Type
-
StrawberryConfig | None
- Default
-
None
-
- Type
-
Dict[object, Type | ScalarWrapper | ScalarDefinition] | None
- Default
-
None
-
- Type
-
Iterable[object]
- Default
-
()
-
Methods:
-
entities_resolver
Signature:
def entities_resolver(self, info: Info, representations: List[FederationAny]) -> List[FederationAny]:
Attributes:
-
-
schema_directives_in_use: