I have two TaskList components that use the same query GET_TASKS. Both use a different filter query variable which is passed down to them in props as queryVars. I defined a standard merge function in type policies to merge the incoming and existing data together. The TaskList component uses to retrieve the data. A Fetch more button has () =>
Tag: react-apollo
How to get and set a ref for a newly cached related object in Apollo client InMemoryCache?
I have a set of related items like so: which apollo caches as two separate cache objects, where the related_entity field on book is a ref to an EntityNode object. This is fine, the related entity data is also used elsewhere outside of the context of a book so having it separate works, and everything seems well and good and
CORS blocks mutation in GraphQL Yoga
I am working here with a graphql prisma backend and a graphql yoga express server on top of that. In the frontend, I am trying to call a signout mutation but its blocked by the CORS policy. Though I have added cors settings in my graphql yoga server, I keep getting this error. GraphQL Queries are working fine but Mutations
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 on which I execute my graphql queries which fetches data from the database and then returns it back to the client. I have created a custom NetworkInterface for the client that helps me to make make customized server request (by