menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 馃殌

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 Studio
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

when should i use writeQuery / writeFragment

I'm new at Apollo React and i a bit stuck... I can't figure out about differences between writeQuery and writeFragment / readFragment and readQuery Can somebody help me with that? Thanks a lot!

thumbsup
0
message-simple
0

useMutation always returns undefined ...

I want to create a user which has an adress using GraphQL mutations. When I try to log the data from the useMutation hook, the adress data is always undefined I am trying to create a user for my app. Each user has an adress. I am able to create an adress in my database. However,鈥

thumbsup
1
message-simple
13

[React Native] Simple useMutation does not trigger UI update

Hi, I have a challenge that I am trying to update the profile Avatar and Display Name of my users on my React Native app but when I do so - it does not trigger an update in the app even though the local cache is updated (I believe, as when I call manually for the data it looks鈥

thumbsup
0
message-simple
2

Compatibility with React 15.6.2

Which Apollo version would best work with this version of React?

thumbsup
0
message-simple
0

useQuery returning undefined

Hey people, whenever I'm using useQuery on my application, the first query that I left below results on data as undefined (and no error either on Network level, nor on the useQuery return). The second query works perfectly, the only difference is the hardcoded data from the鈥

thumbsup
0
message-simple
0

returned data becomes "null" in the cache

i am using apollo-link-rest to perform a POST /login with formdata i a react app, and getting a userobject back if successful login. But the cache does not place the returned json in the apolloclient cache, it adds the user object and all the fields, but all values are null i鈥

thumbsup
0
message-simple
0

How to poll silently, update cache and avoid rerending

Hi all, I am using React Apollo in a react native app. One of the screens on this app relies on data being fetched from the server of a list of items. App.js looks like the following at the end: const WithProvider = () => ( 鈥

thumbsup
0
message-simple
0

Following Manage Local State Example, I get @client is undefined

Hello all, I am very new to all this. I followed this example but I get unknown directive @client. I am just trying to figure out how to have some local data in my app. I tried adding the cache section to my create.js file but then I got cache is鈥

thumbsup
0
message-simple
1

Can't figure out how to get rid of this React warning

I'm using Apollo hooks in my React Native app and I've successfully created login and registration screens. They work fine, but I'm getting this warning: "Warning: Cannot update during an existing state transition (such as within render). Render methods should be a pure function鈥

thumbsup
0
message-simple
15

Is there a way to configure the default fetchPolicy to be `cache-and-network`鈥

When instanciating the Apollo client, you can provide fetch policies for query, watchQuery and mutation. The docs mention that the Query component uses watchQuery. As the useQuery hook isn鈥檛 mentioned as well, this implies useQuery uses query instead, but cache-and-Network is no鈥

thumbsup
1
message-simple
0