GraphQL: using results as inputs

Is there a way to use the results from one query or mutation as inputs for another query or mutation? I.e. What if I wanted to run a query, get data back, then use that data to do an update of something else?

GraphQL Spec doesn’t support this. What you can try is to use Upsert Block in Custom DQL.

With Upsert block you can create a chain of mutation and queries if needed.

PS. Oh, sorry, Custom DQL won’t work… Cuz it is a Mutation. Custom DQL supports only Queries. We should support mutations to make it work.

Ping @pawan, @michaelcompton

Cheers.

1 Like

Relevant: