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

Passing context data through mutation

April 21, 2020 at 10:06pm

Passing context data through mutation

April 21, 2020 at 10:06pm
I'm using apollo-link-rest. Is there a way I can pass data through the mutation? So I have some context data when I call the mutation, and I want to access it in the onCompleted handler?

April 21, 2020 at 10:11pm
Unfortunately, I call the mutate function in a different context and want access to the variables from that context, not the one in which useMutation is called.
Edited
  • reply
  • like
Any ideas?
  • reply
  • like

April 23, 2020 at 10:37pm
Bump
  • reply
  • like