/plushcap/analysis/hasura/dark-and-hasura-actions

Adding custom business logic to Hasura using Dark

What's this blog post about?

In this article, we explore how to add custom business logic to Hasura using Actions and the programming platform Dark. We create a custom mutation for an online mafia game that assigns roles to players while ensuring certain constraints are met. The process involves defining the mutation, creating an HTTP endpoint in Dark, implementing the handler, and testing it by sending requests. We also demonstrate how to modify the definition of the mutation to return additional information about the game and connect it to the graph using a new relationship.

Company
Hasura

Date published
April 16, 2020

Author(s)
Aleksandra

Word count
1254

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.