addInterceptor

Adds an ApolloInterceptor to this ApolloClient.

ApolloInterceptors monitor, rewrite and retry an ApolloCall. Internally, ApolloInterceptor is used for features such as normalized cache and auto persisted queries. ApolloClient also inserts a terminating ApolloInterceptor that executes the request.

The order is important. The ApolloInterceptors are executed in the order they are added. Because cache and APQs also use interceptors, the order of the cache/APQs configuration also influences the final interceptor list.