menu
Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Platform
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team
Posts
Members
Info

Passing mutation

Hey, I have a signup page that works fine(https://pastebin.com/D6h3gRPi), but if I want to split code and pass the mutation to another component nothing happens(https://pastebin.com/tKLvz9nj). Thanks in advance.

thumbsup
0
message-simple
1

Handling @client fields with resolvers

I have a query that contains a virtual field that gets resolved from a local link-state cache, but when I update the cache the value in the query doesn't change. Is there any solution to update that field without refetching the query?

thumbsup
0
message-simple
13

Using MockedProvider to test queries that use fragments

Version: ^3.0.0-beta.41 I'm running into an issue whereby the MockedProvider is not returning the fields within the fragment, adding the fields directly into the query works fine. Has anyone else run into this issue?

thumbsup
0
message-simple
0

Fetching data from a query to put in the state

I'm working on an edit page and i want the values to be filled with the values from the query so they can be edited in a form. I would need to make an empty object which i fill with the query data so i can initialize that object in the state in the componentdidMount() function.

thumbsup
1
message-simple
4

How can I use the useQuery hook in my form submit?

When use submits a form then i need to fetch data with the useQuery hook in react. When I use it inside of my handleSubmit function it gives me error cannot use a hook inside non functional component.

thumbsup
0
message-simple
3

How to test readFragment in React?

I am using Apollo + React + Jest. I have data in Apollo cache, then I get data from it in React as well. But I can't get data while testing. 鈥

thumbsup
0
message-simple
1

How to use useQuery and useState properly ?

Hello everyone, i'm struggling with useQuery and useState hook in a Nextjs project. Basically, i want to "store" data returned by useQuery into a state to filter it after. I suspect exerciseList state is undefined at the very first time and the component is rendered before data鈥

thumbsup
0
message-simple
3

What's the meaning of the useApolloClient?

With that, I don't need anymore to install apollo-client or apollo-boost and wrap in my application or is just to use client like a prop of the provider. Like useSelector (that I have access to the store) of react redux.

thumbsup
0
message-simple
9
Deleted12d# React Apollo

client.readQuery not finding cached query

Hi, I'm trying to use readQuery so I can update my cached results. However, when I run readQuery with a new variables object that has same property values as my previous query it fails to find it. It only seems to work when I use the same reference to variables value that I used鈥

thumbsup
0
message-simple
3

Updating and initializing React context from apollo response

Hi ! I'm having problems wrapping my head around how React's Context API can work with the Apollo Client. Example: 鈥

thumbsup
0
message-simple
3