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
Hugh Willson
@hwillson
Ellen Shapiro
@designatednerd
Jesse Rosenberger
@abernix
Jake Dawkins
@jakedawkins
James Baxley
@jamesbaxley
Jason Paulos
@jasonpaulos
Julia Black
@juliablack
Martijn Walraven
@martijnwalraven
Khalil Stemmler
@khalilstemmler
Peggy Rayzis
@peggy
Ben Church
@bnchrch
Trevor Scheer
@trevor-scheer
Martin B
@mbonnin
Adam Zionts
@zionts
Evans Hauser
@evans
Stephen Barlow
@stephen-barlow
Ashi Krishnan
@rakshesha
Danielle Man
@daniman
Michael Watson
@michael-watson
Thao
@thao
Justin Anastos
@justin-anastos
Tim Hingston
@timbotnik
Adam Torres
@adamatorres
Alisha Ehrlich
@alisha-ehrlich
Chang Wang
@cheapsteak
Claire Hough
@clairehough
David Glasser
@glasser
Fran莽ois Dufour
@francois-dfr
Jenn Creighton
@jenncreighton
Matt DeBergalis
@debergalis
Sachin D. Shinde
@sachin-shinde
Posts
Members
Info

The updateQuery callback for fetchMore is deprecated

The updateQuery callback for fetchMore is deprecated, and will be removed in the next major version of Apollo Client. I removed updateQuery function from fetchmore and added typePolicy merge function, still warning exists. my types are:

thumbsup
1
message-simple
0

How to troubleshoot "Invariant Violation" exception?

Hello, I just published a simple Typescript / Gatsby / Apollo Client application to prod, and I'm seeing a weird exception in my error reporting. The exception is: Invariant Violation: 44 (see https://github.com/apollographql/invariant-packages) 鈥

thumbsup
0
message-simple
0

How to use useQuery in SSR?

Hi guys, I have been trying to use Nextjs and Apollo client, however I can only make work queries inside getInitialProps on Pages in Nextjs, I'm trying to use getDataFromTree to let the queries be closest as possible the components, however I only get SSR of the queries inside鈥

thumbsup
0
message-simple
0

Trying to connect to multiple endpoints.

Hi, I have an application built with NextJS and Apollo Client which work great. I deployed this application in Kubernetes and created a CICD(Jenkins Pipeline) that automatically build the Docker Image and then deploys it in 3 different environments. Development. 鈥

thumbsup
0
message-simple
0

How can you access "Watched Queries" from ApolloClient?

In the ApolloClient DevTools, the "Queries" tab will show you "Watched queries," which is handy indeed. Is there a way to similarly get at the currently "watched queries" from the ApolloClient API directly? The reason I'm asking is because I have a query that gives the user a鈥

thumbsup
0
message-simple
0

fetchPolicy: "network-only", re-renders the component

When the fetchPolicy is set to networkOnly, it re-renders the entire component. Is there a way to prevent it.

thumbsup
0
message-simple
0

How do I avoid prop drilling when using apolloClient for state management?

With something like the ContextAPI you have access to useContext so you can avoid prop drilling. How do I go about doing that with ApolloClient state management? I've found my self having to pass down data and functions to trigger events up and down my components.

thumbsup
0
message-simple
1

Handling cache misses for local state in @apollo/client 3.0

I want to be able to handle cache misses from @client directive queries without having to manually include a code path cache misses for each local resolver function. From what I can tell, in the apollo-link-state days this would've been a lot more straightforward to handle at鈥

thumbsup
0
message-simple
0

How to call multiple queries at the same time?

So I have two queries that I call like this: Is there a way to call them at the same time in a simpler way with the Apollo Client? These two queries don't depend on each other.

thumbsup
0
message-simple
3

@apollo/react-hooks 3.1.5

I just updated from 3.1.4 to 3.1.5 and it broke all parts of the code that use onCompleted callback for useQuery. Normally I can destructure the parameter right away but now I get this: TypeError: Cannot destructure property 'getTasks' of 'undefined' as it is鈥

thumbsup
0
message-simple
0