compose not exported from react-apollo

I'm following a graphql tutorial on youtube (https://www.youtube.com/watch?v=ed8SzALpx1Q at about 3hr 16min) and part of it uses compose from "react-apollo". However, I'm getting an error because...

Setup React-Storybooks with React-Apollo

Is there any way to use React-Apollo with React-Storybooks? Previously I was trying out Relay and there is a module (https://github.com/orta/react-storybooks-relay-container) that allowed for...

React-Select with React-Apollo does not work

We are using react-select and fetching the items as the user types. I am not able to make it work with react-apollo. Can someone help me provide a guideline? Here is my unsuccessful attempt: class...

React-Apollo Mutation returns empty response

I am using AWS Appsync where I want to get a response from a successfully executed mutation. When I try my setup in the Appsync Graphql console I get a filled "data": {...

React Apollo 2.1 mock schema error

I'm trying to provide a mock schema to a component using React Apollo 2.1. However, it returns this error. Error: Network error: No more mocked responses for the query: { me { id email ...

Graphql react-apollo IntrospectionFragmentMatcher

I'm using GitHub Graphql API and I wrote following code with react-apollo but when I paginate after many requests I get following errors on the console. >You are using the simple (heuristic)...

Server side react-apollo wp graphql

I'm using ReactJS server side rendering with express and react-apollo. Everything working perfectly until I use WP acf PRO. GraphiQL show these fields, also if I console.log it in reactjs...

React-Apollo handling error with react native

I am building a react native app with react-apollo. I can't handle graphql error. I have tried some ways but it doesn't work. How can I catch graphql errors? Here is my code; export default...

Apollo Client (React): Handling unexpected errors

I have been reviewing the Apollo documentation but I do not see information of how to go about handling server errors in the Apollo client. For example, suppose that the server either: Times...

React Apollo Client not sending cookies or Headers to Apollo Server 2.0

I have some problems with cookies to React Apollo client and Apollo Server 2.0. My client doesn't send cookies for my server API. I already try the responses above. The client(react-app) running...

Compatibility between cypress and react-apollo

I am using react-apollo to make GraphQL queries, and I am using Cypress for testing. The problem is that these 2 dont seem to play well along. Apollo seems to be making all its requests through...

Passing argument to react-apollo-hooks useQuery

How can I pass an argument to useQuery when using react-apollo-hook? This does not work: const { data, loading, error } = useQuery(GET_DATA, { variables: { id: 'testId' }}); And the...

react-apollo getClient is undefined

There appears to be an error with how I'm using react-apollo. Following the docs, I am attempting to make a basic query with Apollo. This is the error I get in the browser when on the Review page....

Typescript Error while adapting React-Apollo Tutorial to Typescript

i am trying to adapt the react-apollo-hackernews tutorial to typescript. tutorial: https://www.howtographql.com/react-apollo/1-getting-started/ code:...

Graphql react-apollo IntrospectionFragmentMatcher issues

After adding some interface types to our graphql queries our react-apollo app was getting the fragmentMatcher error: > You are using the simple (heuristic) fragment matcher, but your > queries...

React Apollo - multiple mutations

I'm using [email protected] I have a component, when you click on it, it will based on "select" state and issue either an add or a remove operation. Currently I'm doing this to have 2 mutations...

React + Apollo "Getting Started" Error in Prisma Playground

I am in the Getting Started React + Apollo chapter: https://www.howtographql.com/react-apollo/1-getting-started/ When I enter the following query in the Prisma Playground (as the tutorial tells me...

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 read the source of apollo-cache-inmemory, it has a config argument in its...

GraphQL: react-apollo client overwrites array elements

I have a GraphQL query that returns an array of items. I can run the query in GraphiQL and get the result I expected. I have a react application that uses react-apollo and the @graphql decorator...

react-apollo resolve missing fields

Let's say I have this books query that return 2 records and stored in local cache. query Books { books { author title } } 'Book:1': { author: 'Foo', title:...

React-apollo mutation writeQuery doesn't update ui

I learn GraphQL with howtographql.com, but when use mutation for vote the UI doesn't update. I use readQuery and writeQuery on store, after search I test use readQuery and writeQuery on client...

How to set global prop in react apollo client

I am working with react and react-apollo client. Here is my main route file const PrivateRoute = ({ component, isAuthed, ...rest }) => { console.log({ isAuthed }) return ( <Route...

React Apollo perform bulk operation

I am trying to do a bulk operation following this guide, however, it is not clear for me how to do it using react apollo: to start the bulk operation, I am using the useMutation hook, which should...

React Apollo Error: Invariant Violation: Could not find "client" in the context or passed in as an option

I'm building a project using React, Apollo and Next.js. I'm trying to update react-apollo to 3.1.3 and I'm now getting the following error when viewing the site. > Invariant Violation: Could not...

React Apollo data directly to React Context

I have a standard react-apollo graphql query: <Query query={USER_QUERY} variables={{ user: userId }}> { ({ loading, error, data }) => { if (loading) return...

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 am trying to execute a login mutation using the useMutation hook. TLDR; I want to know what...

React apollo query too damn fast

I have a react apollo query that is too fast. The <p>Loading...</p> is shown for a split second before the api query finishes and my results are shown. Is there any way to slow this...

How to handle GraphQL errors with React-Apollo?

I'm trying to move from Rest API to GraphQL using Express + Mongoose on server and React + Apollo on client. async resolve(_, { email, password, passwordConfirmation }) { // Sign Up mutation ...

How to use both react-apollo and react-router-native

I'm trying to add react-router-native to my react-native/react-apollo application but when the <Query> tag gets the data back to the client the component doesn't render again (always show...

Fetch more function is undefined for useLazyQuery react-apollo hook

I use react-apollo useLazyQuery hook. My goal to use it in fetch more button click. However, when I try to use it the fetchMore function is undefined. Here the call to it: const [getMyData,{...