StrawberryUnion
Constructor:
Signature:
type_annotations: Tuple[StrawberryAnnotation, ...] = tuple(),
description: str | None = None,
directives: Iterable[object] = (),
Parameters:
-
- Type
-
str | None
- Default
-
None
-
- Type
-
Tuple[StrawberryAnnotation, ...]
- Default
-
tuple()
-
- Type
-
str | None
- Default
-
None
-
- Type
-
Iterable[object]
- Default
-
()
Methods:
-
copy_with
Signature:
def copy_with(self, type_var_map: Mapping[str, StrawberryType | type]) -> StrawberryType:
Parameters:
-
- Type
-
Mapping[str, StrawberryType | type]
-
get_type_resolver
Signature:
def get_type_resolver(self, type_map: TypeMap) -> GraphQLTypeResolver:
-
is_valid_union_type
Signature:
def is_valid_union_type(type_: object) -> bool:
Attributes:
-
-
-
-
-
- Type
-
Tuple[StrawberryType, ...]
-
-