aerogear / offix-android

Apollo GraphQL offline extensions for Android Platform
https://android.offix.dev
Apache License 2.0
37 stars 16 forks source link

Discussion: Invoking interceptor for mutations only. #99

Closed Lavanyagaur22 closed 5 years ago

Lavanyagaur22 commented 5 years ago

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.

Lavanyagaur22 commented 5 years ago

@harshithdwivedi WDYT?
With reference to https://github.com/aerogear/offix-android/pull/94#issuecomment-518254890