Closed can-kayacan closed 5 years ago
graphqlHTTP(
(request: any) =>
<any>{
schema: instrumentSchemaForTracing(schema),
context: {
_traceCollector: request._traceCollector
},
graphiql: true,
extensions: (info: any) => {
// **access errors here**
info.result.errors
}
}
)
I may be missing something, but any thrown errors should be present in a top-level errors
field, so there's no need to make this part of the tracing extension.
Errors from the resolvers are not traced.
Here the reservedBooks resolver is throwing an error which is not anyhow detected by the apollo-tracing.