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
When nesting a mutation, and having the lib handle django errors (handle_django_errors=True), the Payload type created is named using only the direct field name. If another different mutation has the same name elsewhere, it will use the first created one.
Both project.create and task.create mutations return a CreatePayload. Since the project mutation is the first created, the payload contain ProjectType.
System Information
Operating system:
Strawberry version: 0.242.0
Strawberry django version: 0.48.0
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:
fabien-michel
changed the title
Nome of the Payload GraphQL type created does not take care of parent
Name of the Payload GraphQL type created does not take care of parent
Sep 25, 2024
fabien-michel
changed the title
Name of the Payload GraphQL type created does not take care of parent
Name of the Payload GraphQL type created does not take parent into account
Sep 25, 2024
This is related to namespacing, a feature which we Strawberry itself doesn't support that well yet.
To properly support this we would need to understand that the type being returned is actually a mutation.
I think it is worth to start a discussion about this on discord about namespacing queries and mutations to see what the other devs and the community thinks about and to try to come with a general solution for this.
When nesting a mutation, and having the lib handle django errors (handle_django_errors=True), the Payload type created is named using only the direct field name. If another different mutation has the same name elsewhere, it will use the first created one.
Describe the Bug
Both project.create and task.create mutations return a
CreatePayload
. Since the project mutation is the first created, the payload contain ProjectType.System Information
Upvote & Fund
The text was updated successfully, but these errors were encountered: