-
|
I want a custom response JSON structure: How can I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
bclozel
Oct 3, 2024
Replies: 1 comment 1 reply
-
|
I'm afraid you cannot, as this JSON structure does not align with the spec. You can use the "extensions" entry to add custom fields though. You should see what's possible in the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bbakerman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm afraid you cannot, as this JSON structure does not align with the spec. You can use the "extensions" entry to add custom fields though.
You should see what's possible in the
GraphQLErrorcontract and how you can turn application exceptions into GraphQL errors in Spring for GraphQL.