#Access graphql response with interceptors
7 messages · Page 1 of 1 (latest)
The final response? No. Interceptors run after the resolver, and apollo finshes modification of the response after that. There may be a way through some apollo middleware or configuration option, but I'm not immediately aware of it
I would like to be able to log graphql errors, any idea about how I could achieve that?
I'm using GraphQL Yoga btw
What GraphQL Errors? Like the invalid query ones? No clue.
This type of errors :
Yeah, I think those happen as a validation step at the gql server level before it makes its way to Nest. You'd need to look into Yoga's docs about how to manage those
I'll have a look at it, thank you!