We have attached the interceptor and we read the response received from the request using it. The interceptor is invoked on every call done with the help of apollo client.
What we want to do is:
Check ApolloClient to see if it sends any meta-data for mutations
Only invoke the interceptor for mutations
Mutations and Queries have different operation id's. So we can filter to read the response body of the mutations only by checking if the request headers contains the operation id of the mutation.
We have attached the interceptor and we read the response received from the request using it. The interceptor is invoked on every call done with the help of apollo client.
What we want to do is:
Mutations and Queries have different operation id's. So we can filter to read the response body of the mutations only by checking if the request headers contains the operation id of the mutation.