Top "React-apollo" questions

React Apollo allows you to fetch data from your GraphQL server and use it in building complex and reactive UIs using the React framework.

How to disable cache in apollo-link or apollo-client?

I'm using apollo-client, apollo-link and react-apollo, I want to fully disable cache, but don't know how to do it. I …

react-apollo
GraphQL gql Syntax Error: Expected Name, found }

I'm attempting to set up Apollo GraphQL support in a new React project, but when I try to compile a …

syntax-error graphql apollo react-apollo graphql-tag
React Apollo - Make Multiple Queries

I have a queries file that looks like this: import {gql} from 'react-apollo'; const queries = { getApps: gql` { apps { id name } } `, …

javascript reactjs apollo react-apollo
How do I handle deletes in react-apollo

I have a mutation like mutation deleteRecord($id: ID) { deleteRecord(id: $id) { id } } and in another location I have a …

javascript graphql apollo-server react-apollo
Multiple Queries/Mutation in Apollo 2.1

I need some help using the new Query and Mutation component in Apollo 2.1, especially with multiple queries and mutations. I …

graphql apollo react-apollo
GraphQL - How to respond with different status code?

I'm having a trouble with Graphql and Apollo Client. I always created different responses like 401 code when using REST but …

javascript graphql apollo react-apollo
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
Trying call useQuery in function with react-apollo-hooks

I want to call useQuery whenever I need it, but useQuery can not inside the function. My trying code is: …

javascript reactjs graphql react-hooks react-apollo
Type error: JSX element type '{} | null | undefined' is not a constructor function for JSX elements

I have a React component called HandleQuery that handles the results of an Apollo GraphQL query: import React, { ReactNode } from …

reactjs typescript react-apollo
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