Top "Apollo-client" questions

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

apollo-client does not work with CORS

I am writing a graphql server component on AWS Lambda (NOT using graphql-server). On the client side I'm using apollo-client. …

lambda cors apollo-client
Add custom header to apollo client polling request

I am using the apollo-client library to query data from my Graphql server. Some of the queries are sent to …

javascript graphql apollo apollo-client graphql-js
Using ApolloClient with node.js. "fetch is not found globally and no fetcher passed"

I am attempting to use an Apollo Client on a node.js server to interface with another GraphQL API using …

node.js polyfills apollo-client
Why I got error: Cannot query field xx on type "Query"?

Although I copied and pasted the graphQL query from the GraphiQL tool after I tested it at GraphiQL successfully , the …

reactjs graphql apollo apollo-client
How to force Apollo Query component to re-run query when parent component re-renders

I'm using Apollo Client's <Query> within a component that is re-rendered when state is changed within a lifecycle …

reactjs graphql react-apollo apollo-client
GraphQL mutation: Invariant Violation: Must contain a query definition

I am trying to make a mutation call to my graphQL server from a react application. The react code looks …

reactjs graphql apollo-client
Apollo client mutation error handling

I'm using GraphQL and mongoose on the server. When a validation error occurs the GraphQL mutation sends a response with …

graphql apollo apollo-client
Error: Network error: Error writing result to store for query (Apollo Client)

I am using Apollo Client to make an application to query my server using Graphql. I have a python server …

javascript graphql react-apollo apollo-client
Reset store after logout with Apollo client

I'm trying to reset the store after logout in my react-apollo application. So I've created a method called "logout" which …

reactjs apollo react-apollo apollo-client
How to remove the `__typename` field from the graphql response which fails the mutations

I tried changing the addTypeName: false in the Apollo client in GraphQL apollo.create({ link: httpLinkWithErrorHandling, cache: new InMemoryCache({ addTypename: …

node.js graphql apollo apollo-client express-graphql