Custom Business Logic
You may have to implement custom business logic, such as sending an email, while building your application.
You could make a GraphQL or REST endpoint in a traditional backend application. With Hasura there are a few ways to implement these features like Hasura Actions, event triggers, and remote schemas. We will also cover querying a GraphQL endpoint.
Hasura Actions
Actions are a way to extend Hasura's schema with custom business logic using custom queries and mutations. Actions can be added to Hasura to handle various use cases such as data validation, data enrichment from external sources, and any other complex business logic.
Event Triggers
Hasura can be used to create event triggers on tables in the database. Event triggers reliably capture events on specified tables and invoke HTTP webhooks to carry out any custom logic.
Remote Schema
Hasura can merge remote GraphQL schemas and provide a unified GraphQL API. Think of it like automated schema stitching. All you need to do is build your GraphQL service and provide the HTTP endpoint to Hasura. Your GraphQL service can be written in any language or framework.
- Build apps and APIs 10x faster
- Built-in authorization and caching
- 8x more performant than hand-rolled APIs