Skip to content

Instantly share code, notes, and snippets.

@jeffdev11
Forked from GavinRay97/index.md
Created April 25, 2023 04:52
Show Gist options
  • Save jeffdev11/dc72a8dc81c99000e2293cc00d06009c to your computer and use it in GitHub Desktop.
Save jeffdev11/dc72a8dc81c99000e2293cc00d06009c to your computer and use it in GitHub Desktop.
Hasura organization permissions

Example Data

User Organization User Organization

Relationships

User Organization User Organization

Permissions

User Organization User Organization

Query Results

User ID 1 (Org 1) User ID 1 (Org 2)

user: {"organization_user":{"organization":{"organization_user":{"user_id":{"_eq":"X-Hasura-User-Id"}}}}} organization_user: {"organization":{"organization_user":{"user_id":{"_eq":"X-Hasura-User-Id"}}}} organization: {"organization_user":{"user_id":{"_eq":"X-Hasura-User-Id"}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment