Adding permissions across remote databases #10075
Unanswered
willtpwise
asked this question in
Question
Replies: 1 comment 3 replies
-
I've also been reading this article, which suggest this is possible but unfortunately I'm not seeing the related table when creating a permisson: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm exploring the Hasura remote database feature and looking to see if it is possible to write a permission statement across two databases.
Table structure
First Database
Second Database
Relationships
bookings.account_id
-> object relationship ->accounts.id
users.account_id
-> object relationship ->accounts.id
Bookings permission model
I'd like to define permissions across these two tables and confirm that the current user belongs to the account for this booking.
For example:
Unfortunately, "account" is not available as an option in the permissions relationships dropdown.
Notes
HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS
but I believe that's for remote "schemas" and not remote "databases".Beta Was this translation helpful? Give feedback.
All reactions