/plushcap/analysis/hasura/graphql-authorization-with-hasura

GraphQL Authorization with Hasura: How to prevent mutations after a time interval

What's this blog post about?

The text discusses three approaches to prevent users from creating/updating/deleting records in a table after a certain period of time. These include using Postgres triggers, Hasura's "Column Comparison" permission operators, and Postgres "Check Constraints". It provides detailed examples for each approach and highlights their pros and cons. The text also mentions that these solutions can be used to enforce data integrity within the bounds of Hasura's permission and roles system.

Company
Hasura

Date published
Aug. 4, 2021

Author(s)
Gavin Ray

Word count
1025

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.