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

Can I do mutations without hooks?

I'm very new to apollo and I'm trying to implement refreshToken logic. Therefore I'm using a custom fetch function that checks the response of the request and if that returns an 'Unauthorized' I would like to fetch a new token with my refreshToken. As the customFetch is not a…

thumbsup
0
message-simple
6

Control merging of every query result to the cache, on a collaboration app.

We're building a an app with collaboration and optimistic ui updates. On every query/mutation/subscription result, we need to decide wether to allow each possible cacheable object in that result to be merged to the cache or discarded. Any ideas on how to achieve this? We already…

thumbsup
0
message-simple
0

How I can refetch with empty object.

I use @apollo/react-hooks I use refetch. I have default filters. After I change filters and I make a request. …

thumbsup
0
message-simple
0

Apollo Client 3.0 `typePolicies` on inner query field

Is it possible to create a typePolicies rule for a field within a query? For example, the posts field in this query: Or should something like this still be handled by @connection?

thumbsup
0
message-simple
4

Updating the cache after a mutation

I found this incredibly hard to search for directly - I kept ending up with blog posts about writeFragment, etc. but what I want to know is... if I have a query like this: and then do will that update the entity stored in the cache for the original query? Note that I'm selecting…

thumbsup
0
message-simple
0

Slow query, fast mutation, broken cache.

Hi all. I have a slow running query that updates some data in my application's cache. The query takes ~2 seconds. I also have a fast running mutation that affects that same data, and pulls the updated data as a result. I've noticed that if the slow query starts, and within the…

thumbsup
0
message-simple
0

How do I pass headers to apolloClient for both SSR and Client Side Rendering?

I am writing a Next/React application with an Apollo graphql server. Some of the queries are to be executed server side to be displayed to the user (for example a record of their orders), others will be triggered with an onClick (for example when searching products). While the…

thumbsup
0
message-simple
0

Apollo useLazyQuery not working expectedly

I am trying to fetch data using the Apollo useLazyQuery hook but the hook is not returning anything. I tried to console.log(data, loading, error, called ) but everything is empty here even after the function get called. However, I tried the XHR tab. it shows the proper…

thumbsup
1
message-simple
0

Query context typing?

How can I typing in query context? For example, I set some interface with BatchHttpLink. However cannot found how to do that ;D For now, it seems to there are no way based on apollo-client/core/types.ts. Is it possible? Did I missing something? link definitions …

thumbsup
0
message-simple
0

Local state management - Apollo Docs and the @client directive.

While use of this is straightforward in a single app or monorepo app, I've wondered how it can be used in a modular application where the different modules are from different codebases. Are collisions something that needs worrying about? Do we need to implement some naming…

thumbsup
1
message-simple
0