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

Mocked Provider returning undefined error

I have a pretty simple component using a query that requires no variables: I'm unable to get a correct mocked response for the error state . The mocked provider keeps returning the error as undefined in the following test. Using react-testing-library w jest (haven't updated to…

thumbsup
0
message-simple
2

Can I re-execute a query with additional fields?

Hey all, this is my first post here. I am wondering if there's a way to have a query which I can conditionally add fields to? For example I want to fetch an organization to get the overview, but then if the user wants to switch tabs to see all members of the organization, I need…

thumbsup
0
message-simple
0

`getDataFromTree` in '@apollo/react-ssr': Does it support multiple clients?

I have two different graphql apis (and hence two apollo clients) and I want to server render data from both of them. Is this possible?

thumbsup
0
message-simple
0

apollo@react-hooks vs async await mechanism

Hey everyone. I just started using graphQL and Apollo in a project and I have a short question. Which version is better from a performance point of view: catching the error in the useMutation options: onError or using a try-catch with async await? It's ok to use async-await when…

thumbsup
0
message-simple
0

HOOKS: map array by argument (Increment / Alphabetised etc)

Testing how to map a list with Star Wars characters, but how can I change which field they're mapped by (height / name etc) and how it's organised (incremental height, alphabetised first name etc)? Links/forks welcome. SANDBOX:…

thumbsup
1
message-simple
1

Error handling with `apollo-link-error` and displaying error

Hey, I have managed to capture the errors fine, but Im wondering what is the ebst way to display a error message in my application globally. does any one have an diea of implementaiton, my only solution right now involves redux.

thumbsup
0
message-simple
1

Is there a good way to figure out why a hook isn't being dispatched?

thumbsup
0
message-simple
0

Hook not dispatched when updating nested list when using `writeQuery` mutation

When mutating adding an object to the events using writeQuery: 1. Updates the cache 2. Dispatches the eventsQuery hook. …

thumbsup
0
message-simple
0

onCompleted is not getting called while polling a query using startPolling

Is this expected or am I doing something wrong?

thumbsup
0
message-simple
0

How to make loading state lasts longer when using MockedProvider?

Hello! Is it possible to somehow make loading state lasts longer when using MockedProvider? I would like to display a component in storybook and would be awesome if there was such an option so QA can check different states.

thumbsup
0
message-simple
2