You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Works as expected with regular @strawberry.input decorator
@strawberry.inputclassUser:
id: str=strawberry.field(description="Id of the user")
name: str|None=strawberry.field(description="Name of the user", deprecation_reason="No longer used")
inputUser {
"""Id of the user"""id: String!"""Name of the user"""name: String@deprecated(reason: "No longer used")
}
Doesn't work as expected with @strawberry.experimental.pydantic.input decorator
classUserPyd(BaseModel):
id: strname: str|None@strawberry.experimental.pydantic.input(model=UserPyd)classUser:
id: str=strawberry.field(description="Id of the user")
name: str|None=strawberry.field(description="Name of the user", deprecation_reason="No longer used")
inputUser {
id: String!name: String@deprecated(reason: "No longer used")
}
System Information
Operating system: Ubuntu
Strawberry version (if applicable): 0.227.3
Additional Context
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
As a sanity check, does removing the pass change anything? It definitely shouldn't but, just in case I suppose...
@strawberry.experimental.pydantic.input(model=UserPyd)classUser:
id: str=strawberry.field(description="Id of the user")
name: str|None=strawberry.field(description="Name of the user", deprecation_reason="No longer used")
pass
Describe the Bug
Works as expected with regular
@strawberry.input
decoratorDoesn't work as expected with
@strawberry.experimental.pydantic.input
decoratorSystem Information
Additional Context
Upvote & Fund
The text was updated successfully, but these errors were encountered: