Home / Companies / Hasura / Blog / Post Details
Content Deep Dive

Support for array operators in permissions

Blog post from Hasura

Post Details
Company
Date Published
Author
Marion
Word Count
278
Language
English
Hacker News Points
-
Summary

In v1.0.0-beta.3, support for array operators like _in, _nin, and _has_keys_any has been added to permission rules. This feature allows users to specify access permissions based on arrays of values. An example is given where a user can access zero, one or several organizations. The session variable X-Hasura-Allowed-Org-Ids contains an array of org_id values that determine which organizations the user has access to. The array operators are useful for managing complex permission scenarios and provide more flexibility in defining access control rules.