Top "Apollo-client" questions

Apollo Client is a JavaScript library for building client UIs that fetch data using GraphQL.

GraphQL dynamic query building

I have a GraphQL server which is able to serve timeseries data for a specified source (for example, sensor data). …

graphql apollo apollo-client graphql-tag
When to use watchQuery or query in Apollo-Angular?

I am using a watchQuery or query in Apollo-Angular (graphql) How is the logic and difference of the watchQuery and …

angular graphql apollo apollo-client
Unsubscribe subscription in Apollo Client

In my component, I have this code: componentDidMount () { // Setup subscription listener const { client, match: { params: { groupId } } } = this.props client.subscribe({ …

javascript reactjs apollo react-apollo apollo-client
How to chain two GraphQL queries in sequence using Apollo Client

I am using Apollo Client for the frontend and Graphcool for the backend. There are two queries firstQuery and secondQuery …

graphql apollo react-apollo apollo-client graphcool
Handling errors with react-apollo useMutation hook

I have been trying to get my head around this problem but haven't found a strong answer to it. I …

reactjs graphql react-apollo apollo-client
How to set a timeout on a request with Apollo-Client

I have a React-Native app where I make requests to a GraphQL server. Everything works fine except I need a …

javascript react-native graphql apollo apollo-client
How to execute an async fetch request and then retry last failed request?

Apollo link offers an error handler onError Issue: Currently, we wish to refresh oauth tokens when they expires during an …

apollo react-apollo apollo-client
Apollo client is giving me an error of 'store already contains an id' - what does that mean?

In a react native project I am creating an object and then redirecting the screen to the newly created object's …

graphql react-apollo apollo-client
How to implement auto refresh token in graphql for jwt based authentication?

I am trying to figure out this scenario for my JWT based authentication in Apollo based graphql server (2.0) . Basically after …

node.js jwt graphql apollo-client apollo-server
Intercept Apollo/graphql requests

we are using Apollo/Graphql in our application, and we are facing an issue. The application is developed in Angular 5, …

angular error-handling apollo apollo-client express-graphql