menu
Channels
Team
Posts
Members
Info
Daniel·9h

Invalid Mutation Response - Trying to pull data from Query response

I'm trying to pull some information from the returned values from my Mutation Query (found in the onComplete portion of the InputGraphSectionContainer class), but unfortunately, react is reading the value as undefined during the execution of the onComplete function. I've…

thumbsup
0
message-simple
3

How to perform a mutation outside of render

I've got a component where I'm doing some geolocation, and when I'm close to a set location, I want to call a mutation. It's outside of my render() return (), so wondering how to best call a mutation? Tried to post some code below (sorry, could not find a guide on how to post…

thumbsup
0
message-simple
9
Tobias·2d

Uncaught (in promise) Error: Network error: Failed to fetch at new ApolloError…

Hey all, i have a login mutation/resolver for setting cookies. Works in playground, cookies are also set with React, but i get the errorMsg below, can someone help? What does it mean? Code in react Thanks!

thumbsup
0
message-simple
5

Showing only one Spinner instead of several 'loading...' labels

Hola Gente! I made a small project to connect Apollo with a WordPress site: https://github.com/nmenescardi/WP-GraphQL-Apollo My next challenge is to show only one spinner when loading instead of showing several ‘loading…’ labels all across a page. I’m thinking on using the…

thumbsup
0
message-simple
4

Apollo In-Memory Cache - Concatenating same query with different parameters in…

I am trying to do some cache mutations when adding/deleting an entity, in our case named Wells. Currently we have two queries: When I look at the apollo dev tools cache, it shows me that both of these queries are under different "headings": …

thumbsup
0
message-simple
4

SSR with Material-UI ReactRouterConfig Loadable-Components

Hi guys! I'm trying moving from Redux to Apollo store and facing with new challenges that Apollo brings us :) The first problem was the need for two-step rendering App component (due to MaterialUI's generate class names problem). Once solved this problem, facing with next: empty…

thumbsup
0
message-simple
0

React hooks, useEffect with data.fetchMore

I'm running into issues using the HOC graphql component and a useEffect that triggers a fetchMore on prop change. So lets say I have the following table component, which takes in "activeFilters" as its prop. The issue is that, filters are changed in a sibling component and…

thumbsup
0
message-simple
0
Daniel·3d

Mutation Troubles v2. Electric Boogaloo

Hi! I'm having troubles conditionally calling a mutation from a handler within my main render class. Unfortunately, I am unable to implement a submit button(limitations of project definition, my DOM inputs must dynamically render the new graph onChange) and have to verify…

thumbsup
0
message-simple
20
Daniel·3d

Resolving a CORS redirect issue

Hi! I'm having a bit of trouble getting my client and my backend(graphene-django) to work with each other. Unfortunately, I'm receiving the following error on query: "Access to fetch at 'http://localhost:8000/gql' from origin 'http://localhost:3000' has been blocked by CORS…

thumbsup
0
message-simple
0

create more component that communicates with the same query graphql

Hello, I am creating several components for a search with infinite scroll and fliter. I would like to know it is possible to communicate the research component with the componement result and the filter must take the value of the search and update the component result. Thank you…

thumbsup
0
message-simple
0