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

Does `addResolvers` deduplicate?

Let's say I had two components, A and B, which both depended on the same resolvers, R, and both A and B load R lazily with client.addResolvers If I load component A first, then later on load component B, will apollo-client perform extra work to re-register R?

thumbsup
1
message-simple
0
Deleted24d# Local State

Local resolvers and cache preview

I'm using local resolvers to do some state manipulation. I am wondering why does my changes to the cache are not being reflected in the apollo dev tools cache preview. Any ideas?

thumbsup
0
message-simple
0

Apollo Client with Redux

I am doing a project of migrating existing project that uses Redux to Apollo Client. I am trying to see if there is a way if Apollo Client can use redux store instead of having its own state management? If doing an application from scratch, I would not want Redux and just use鈥

thumbsup
0
message-simple
0

Automatic caching after mutation

Manually writing cache.writeQuery after mutation. There is no way to do this automatically? https://www.apollographql.com/docs/react/data/mutations/#making-all-other-cache-updates

thumbsup
0
message-simple
2

Combining remote results with local results

Hi! I'm developing an app where I have to combine a list of local objects of type "ABC" with remote object of type "ABC". I guess, as these have the same type, the structure of these objects should be the same? Is there a possibility to write a resolver that maps the structure鈥

thumbsup
1
message-simple
0

Mutations in local schema

Hi! I'm trying to set up Apollo with local state management and I'm unable to get codegen working once I define mutation in local schema. It works as it should and it's even part of schema when I run apollo client:download-schema, but if I run apollo client:codegen鈥

thumbsup
1
message-simple
1

Client has typeDefs, but no `Docs` in GraphiQL

The Apollo local-state docs say that if I pass a typeDefs object to my client when I create it, I should be able to view schema docs in the dev tools. whelp: As you can see from the screenshot, I have typeDefs, but no dev-tools GraphiQL Docs section. Am I doing it wrong?

thumbsup
0
message-simple
7

Query github graph to get repository details but use local state variable

I have some local state and want to query github using the above owner and name. Is that possible? Currently I first query to get owner and name and then do another query to github. I'm trying to do it all in 1 query

thumbsup
0
message-simple
0

Writing to cache disabled a resolver

Description Using apollo-client 2.6 I have 2 local schemas right now, one for Session and one for PathHistory. I'm able to use cache.writeQuery to assigned starting data for Session without issue, but when I try to do the same for PathHistory, the Query resolver for PathHistory鈥

thumbsup
0
message-simple
1

@client dynamically

HI all! I have a normal query written in Graphql language in the client, is a file .graphql. I want to add the directive @client to that query only when the app is offline, is there a way?? i don't want to duplicate the file just for that.. the other idea i have is to create the鈥

thumbsup
0
message-simple
1