-
|
When generating this error on a custom DataFetcher class: I noticed that the JSON generated have extensions and classification:
Why do we have a classification section here? Is this part of the spec? How can I disable the whole extensions from appearing in this case? Testing using v24.1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
classification is not part of the spec - the graphql-java team chose to do this because the spec is very thin on errors and we felt this would do good than harm. There is no switch to disable this behavior. You would need to post process the map and kill the attributes manually The code that does this for the record is |
Beta Was this translation helpful? Give feedback.
classification is not part of the spec - the graphql-java team chose to do this because the spec is very thin on errors and we felt this would do good than harm.
There is no switch to disable this behavior. You would need to post process the map and kill the attributes manually
The code that does this for the record is
graphql.GraphqlErrorHelper#toSpecification