Closed ricardomercado closed 6 years ago
Did you forget to call ExecutionResult#toSpecification
? That produces a spec-compliant map that you're supposed to send to the client.
Either case, SPQR neither executes the query nor constructs the result - graphl-java does that - SPQR only generates the schema.
See the sample as well.
Hello, Not sure if this is a big ask, but according to the GraphQL spec, the
errors
element in the response should only be present if it contains error data. This is not a big deal for most uses, but it can break some client libraries like Apollo, which adhere strictly to the spec.