Questions tagged [apollo-link]

34 questions
0
votes
1 answer

How to set Apollo link URI per query - initial uri stays, should I use dynamic uri (angular 8)

Summary I'm building a simple search application in Angular 8, using Apollo with a graphql server over elasticsearch; I'm passing the elastic query to the backend in the URI, then graphql queries run within the elastic returned data. However, the…
0
votes
1 answer

Apollo-link @client mutation on successful retry

I'm rendering notifications in my React app upon retries caused by network errors. I wish to clear any such notification if/when a connection is reestablished (a successful retry) I've used apollo-link-retry and used a custom attempts callback to…
0
votes
0 answers

What is the purpose of defaults in Apollo Link State?

Why would one do this: const clientState = { defaults: { networkStatus: { __typename: 'NetworkStatus', id: 1, isConnected: false, }, }, resolvers: {}, }; Over this: const clientState = { resolvers: { Query: { …
1 2
3