Mutation Chaining in apollo superGraph

Mutation Chaining in apollo superGraph


0

I need to insert record in through one SubGraph and based on returned Id I want to update record in another SubGraph. Looks like apollo doesn’t support mutation chaining directly (can’t pass Id from one mutation to the other one).

Can we do a query, get an Id and then use that in a mutation ?
Something like:

get an id from Subgraph 1

make mutation call to subgraph 2 with Id returned in first query


Load 6 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *