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

How to use mutations with local-only fields

Local resolvers are said to be deprecated, but I cannot find any documentation on how to use mutations with local-only fields. Adding a type policy of 'Mutation' does not seem to be executed. The reason I want this is because I want to send data over p2p protocol to other…

thumbsup
0
message-simple
0

Updating documentation for "deprecated" features in v3

Should we update, for example, imports for HOC(https://www.apollographql.com/docs/react/api/react/hoc/#withapollocomponent) or components (https://www.apollographql.com/docs/react/api/react/components/), in the v3 docs? I am in the middle of migrating my codebase and old code…

thumbsup
0
message-simple
0

Update cache on list with mutation which updates single object.

Hi, Let's say I have list like: and update query as: …

thumbsup
0
message-simple
0

How can you get queries to actually use at the cache?

When updating items via writeFragment, I can see that they're changed in the cache (writeFragment) However, my queries / watchQueries return "stale" values. Furthermore, client.query(options) delivers stale results, whereas client.readQuery(options) - i.e. with the same options…

thumbsup
0
message-simple
2

Apollo Elements 3: GraphQL with Web Components

https://dev.to/bennypowers/take-graphql-into-orbit-with-apollo-elements-3-5hkd Today I released Apollo Elements 3 • ✅ All TypeScript …

thumbsup
0
message-simple
5

useQuery returning stale data when variables change?

Hi there! I noticed that the data result from my useQuery hook can have stale values after variables change. I see that this was discussed a lot on GitHub, but in my case I'd prefer to NOT have the stale data if the variables have changed. I just upgraded to apollo-client 1.3.1…

thumbsup
0
message-simple
8

Cache not updating

(using apollo client) I am trying to update my cache with the following code The cache is not being updated, thus my NavBar component is not being rendered. Is there something I am missing?

thumbsup
0
message-simple
1

FetchMore Typepolicy Merge.

I use network only for most of my requests because I have complex filtering/searching/sorting on most of my lists. I can't workout how you can just use the merge for a field only when you're doing a fetchMore. Essentially for any other request I just want to return the incoming…

thumbsup
2
message-simple
1

Multiple mutations in the same file

Hi, My API for updating item is split, For example: if I want to update a Person, I have 2 mutations, one for updateName and second for updateAge …

thumbsup
0
message-simple
1

writeFragment does not return a reference...?

Can someone help me understand writeFragment? My understanding is that in my situation, it should be returning a reference. I stepped through the entire writeFragment process with a debugger; saw it create the item and the ref, saw it grab the parent object and it's array of…

thumbsup
0
message-simple
2