Adding custom business logic to Hasura using Dark
Hasura has recently implemented a way to create custom mutations called Actions.
Want to handle complex business logic? Actions are the way to go!
To create a new action, you need to provide a definition, handler (REST
endpoint), and specify the kind – sync or async. When you run the custom GraphQL
mutation, Hasura makes a POST request to the specified handler with the mutation
arguments and the session variables. If you want to know more about the
machinery behind it, check out the docs
[https