/plushcap/analysis/hasura/disable-query-subscription-root-fields-in-hasura

Disable GraphQL Query and Subscription Root Fields selectively with RBAC

What's this blog post about?

Hasura has introduced a new feature in its v2.8.0 version that allows users to disable GraphQL query and subscription root fields selectively using Role-Based Access Control (RBAC). This enables users to hide certain root fields or none at all, depending on their requirements. To use this feature, users need to export the metadata file, make the corresponding changes, and then upload the metadata file back to Hasura. The feature also allows users to disable specific GraphQL operations such as queries or subscriptions for a particular role, or even disallow both. Additionally, it enables users to access tables only through their primary key or indirectly through a relationship.

Company
Hasura

Date published
Sept. 5, 2022

Author(s)
Catalin Pit

Word count
905

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.