hasura/graphql-engine

Federated Mutations (orchestration framework)

manasag opened this issue · 3 comments

Some of the usecases being considered as part of this issue:

  • I want to issue multiple GQL queries/mutations and interleave business logic amongst them
  • I want to apply validation logic before a mutation
  • I want to add computed fields to my existing object types
  • I want to run complex authorization logic before applying a mutation
  • I want to run a saga/workflow of business logic interleaved with queries/mutations

This issue seems to combine issues like #5773, #1583, #2657.

@manasag , @sordina do you have an idea when this will be implemented?

The current thought about this is to expose some built in functions in the Typescript Connector that allows to call back into the Hasura Supergraph. These callbacks will make it possible to compose any number of queries or mutations in easy typescript function definitions. We will be sharing the RFC and maybe some early work soon about this.
This is not planned to be in production soon. Best case end of 2024.