strawberry.experimental.pydantic.input
Convenience decorator for creating an input type from a Pydantic model.
Equal to partial(type, is_input=True)
See https://github.com/strawberry-graphql/strawberry/issues/1830 .
Signature:
Parameters:
-
model:
- Type
-
Type[PydanticModel]
-
fields:
- Type
-
List[str] | None
- Default
-
None
-
name:
- Type
-
str | None
- Default
-
None
-
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