Federated Mutations (orchestration framework)
manasag opened this issue · 3 comments
manasag commented
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
beepsoft commented
manasag commented
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.
manasag commented
The RFC can be found here https://github.com/hasura/graphql-engine/blob/daniel/rfc-supergraph-client/rfcs/v3/supergraph-client.md