Closed rgcottrell closed 2 weeks ago
The other way of doing this would be to extend GraphQLJSONEncoder()
to conform to ResponseEncoder
and then use a RequestContext
to set the responseEncoder
but it doesn't really make much difference either way.
This uses the GraphQLJSONEncoder when converting a GraphQLResult to a Response to return the query results in the order that the were specified in the request.