Is your feature request related to a problem? Please describe.
We'd like to have an OpenAPI spec for exactly what a GraphQL server would return. GraphQL wraps the response in a topmost data property (in the same level, there can also be an error key/property): https://graphql.org/learn/response/
Describe the solution you'd like
Add an CLI option like --wrap-in-data-object or --wrapper-object-property "data".
Describe alternatives you've considered
Removing the data wrapper in the server response, but then it would be different from the GraphQL response. And in GraphQL, there could be both an error object and an data object (which could be partial, with the accompanying error).
Is your feature request related to a problem? Please describe.
We'd like to have an OpenAPI spec for exactly what a GraphQL server would return. GraphQL wraps the response in a topmost
dataproperty (in the same level, there can also be anerrorkey/property): https://graphql.org/learn/response/Describe the solution you'd like
Add an CLI option like
--wrap-in-data-objector--wrapper-object-property "data".Describe alternatives you've considered
Removing the
datawrapper in the server response, but then it would be different from the GraphQL response. And in GraphQL, there could be both anerrorobject and andataobject (which could be partial, with the accompanying error).