The feature will prevent defining multiple types for each CRUD operation such as UserRead
, UserUpdate
... In JPA there are updatable and insertable properties
@strawberry.type
class User:
id: str = StrawberryField(is_create_type_field=False, is_update_type_field=False) # defaults are True
username: str = StrawberryField()
password: str = StrawberryField(is_read_type_field=False, is_query_type_field=False)
User.read_type
is equivalent to
@strawberry.type
class UserRead:
id: str
username: str
User.create_type
is equivalent to
@strawberry.input
class UserCreate:
username: str
password: str
User.update_type
is equivalent to
@strawberry.input
class UserUpdate:
username: str = strawbbery.UNSET
password: str = strawbbery.UNSET
User.query_type
is equivalent to
@strawberry.input
class UserQuery:
id: str = strawberry.UNSET
username: str = strawbbery.UNSET
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too