strawberry.experimental.pydantic.type
Signature:
def type( model: Type[PydanticModel], fields: List[str] | None = None, name: str | None = None, is_input: bool = False, is_interface: bool = False, description: str | None = None, directives: Sequence[object] | None = (), all_fields: bool = False, use_pydantic_alias: bool = True,) -> Callable[..., Type[StrawberryTypeFromPydantic[PydanticModel]]]: ...
Parameters:
-
model:
- Type
-
Type[PydanticModel]
-
fields:
- Type
-
List[str] | None
- Default
-
None
-
name:
- Type
-
str | None
- Default
-
None
-
is_input:
- Type
-
bool
- Default
-
False
-
is_interface:
- Type
-
bool
- Default
-
False
-
description:
- Type
-
str | None
- Default
-
None
-
directives:
- Type
-
Sequence[object] | None
- Default
-
()
-
all_fields:
- Type
-
bool
- Default
-
False
-
use_pydantic_alias:
- Type
-
bool
- Default
-
True