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

Uncaught Invariant Violation: Missing selection set for object of type User…

I am trying use local state to manage current user's information. The approach is that after user logs in successfully, the apollo client writes user data to local state with plain client.writeData. However, I always get the error Uncaught Invariant Violation: Missing selection…

thumbsup
0
message-simple
0

Local mutation resolver not working

This is my client but when I call the mutation The resolver function never gets called. Any help would be appreciated```

thumbsup
2
message-simple
11

Local State Management- Adding virtual field to server data

As per documentation I have setup all the thing but when I add the @client( virtual field) in server query I am getting error 1. cannot query field "isInCart" on type “TEST” GRAPHQL_VALIDATION_FAILED. 2. unknown directive "client". …

thumbsup
0
message-simple
2

how do I split up typeDefs for local state?

e.g. if I want to split up post typeDefs / resolvers and comment typeDefs and resolvers is this possible? if so, how? an example would be appreciated. Thanks!

thumbsup
1
message-simple
4

Add data/sources to context for local resolvers?

I'm attempting to use client state to resolve data from various services/stores that are already held client-side. Unfortunately, I can't just import them and need to configure apollo-client somehow so that they are available in a resolvers context (just like dataSources in…

thumbsup
0
message-simple
1

Update cached data.

I have a group list data coming from server and a form to add a group. Now when I add a group I want to update the data of group list in local cache aswell so that I don't have to refresh to see the newly added group. How do I do this ? …

thumbsup
0
message-simple
2

Open source projects using Apollo local state

Are there any (somewhat complex) open source projects using Apollo local state ? Please post if you know/have any.

thumbsup
0
message-simple
0

Schema type definition is not executable

Hey guys, I am completely new to Apollo. Currently, I am setting up a Headless WP, Gatsby, Graphql, Apollo project (e-commerce). However, for some reason I ran into an interesting problem while setting up the local state with Apollo. I created a localState file as follow: …

thumbsup
0
message-simple
1

Getter for local state

Hello, I use apollo vue. I need an alternative of Vuex. I get a local data from cache by this way this.$apollo.getClient().readQuery({ query: ME_QUERY }) And I need to get this data in different components with its preparation (not the raw data). …

thumbsup
0
message-simple
0

Update React context local state at the root of the App

Hello, I've learned about Apollo built in local state today and figured out it requires a lot of boilerplate code. I'm using Apollo hooks to query remote data and React context hook for my local state. I'd like to keep it that way for now to keep things simple. Now there's one…

thumbsup
0
message-simple
1