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…

Thomas Humphries
- 47
- 3
- 9
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…

Niels Søholm
- 45
- 8
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: {
…

Richard Scarrott
- 6,638
- 1
- 35
- 46