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
In the actual schema, the field and type name are switched.
One thing to note, I've tried this without explicitly defining type and field names (no arguments in mutation convention attribute), and the schema got the payload type correct (based on convention), but the payload field name is string, (which I assume is working as intended since I am only returning a string, not an object.)
Please let me know if I need more information. I am happy to provide more! And lastly, I am new to GraphQL so I may be getting things wrong. If so, let me know!
Thanks!
Steps to reproduce
Create a mutation that uses the mutation convention.
Ensure that the mutation method returns a string, or any type that isn't an object.
In the convention, explicitly define the Payload field and type name.
Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.4.0
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
When using mutation conventions and explicitly defining the type and field name for payload, it produces the incorrect schema.
According to the documentation, the PayloadFieldName is the name of the field in the payload that represents the data....
... and PayloadTypeName is the type name of the payload.
Here is the C# code.
Expected schema:
Actual schema:
In the actual schema, the field and type name are switched.
One thing to note, I've tried this without explicitly defining type and field names (no arguments in mutation convention attribute), and the schema got the payload type correct (based on convention), but the payload field name is string, (which I assume is working as intended since I am only returning a string, not an object.)
Please let me know if I need more information. I am happy to provide more! And lastly, I am new to GraphQL so I may be getting things wrong. If so, let me know!
Thanks!
Steps to reproduce
Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.4.0
The text was updated successfully, but these errors were encountered: