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

Pre 3.0 I could mutate the results of `apolloClient.query()`, now I can't

Would someone be able to point me to the docs where this change has taken place please? I get an error Cannot assign to read only property 'name' of object '#<Object>'. I assume this means the cache is now immutable but would like to know how to proceed.

thumbsup
0
message-simple
1

Just updated to @apollo/client@beta and now errors re: React?

I don't use React and have been using Vue but am now getting: Is ApolloClient now react only!?

thumbsup
0
message-simple
6

Babel Polyfills breaking Apollo Client

I'm using react-apollo, v 3.1.4 When I add in babel polyfills using useBuiltIns: 'usage', Apollo breaks across all browsers. How can I fix this?

thumbsup
0
message-simple
1

Mutation in local resolver to update apollo cache doesn't trigger queries with鈥

I am not seeing the reactiveness I expected when my resolvers write to and update the cache. For example, I have a mutation in a local resolver which changes the date range of a graph: Which works perfectly and in fact i see the updates in the cache and the rerendering of my鈥

thumbsup
0
message-simple
3

Handling cached paginated query updates on item mutations

I'm trying to figure out how to correctly make Apollo invalidate paginated queries results after specific item changes. The setup is as follow: 鈥 There are two lists of tags: all tags and archived tags 鈥

thumbsup
0
message-simple
8

How to use .js in the tutorial instead of .ts?

I don't know typescript, and would like to use JS. But all files in start/client already end in .tsx. Should I rename all of them to .js before continuing? Running into errors like:

thumbsup
1
message-simple
4

using the update in useMutation not updating the cache properly

After a mutation, I try to update the cache with the returned results, but the results don't reflect on the ui. Is there a way I can check the cache afterwards to check if it actually went through?

thumbsup
0
message-simple
0

Apollo 3, how to handle list after eviction

I've got a list of items and a remove query that evicts one of those items. After the eviction, the item remains on the list. Right now it seems like my options are to either filter out the item in question from every list in my UI, defined custom read typePolicies or to鈥

thumbsup
0
message-simple
5

how to test useQuery which has the client passed via options

can use MockedProvider to replace ApolloProvider in tests, but how to test when passed through client option? tried using mocking of the client as below, but got the below mentioned error jest.mock('../client', () => { 鈥

thumbsup
0
message-simple
0

onCompleted callback of useQuery does not fire on server with SSR enabled for鈥

What I am trying to achieve is inside onCompleted callback of useQuery, I want to execute a mutation which sets permissions on apollo client but this is not being executed on server . It only executes on the browser . So, while on server my component is rendered assuming not鈥

thumbsup
0
message-simple
6