Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flyingsilverfin/55c27bd5e3c65195187d2d338b80f438 to your computer and use it in GitHub Desktop.
Save flyingsilverfin/55c27bd5e3c65195187d2d338b80f438 to your computer and use it in GitHub Desktop.
Rules in TypeDB blog: members borrow read access rule
rule members-borrow-read-access:
when {
(member: $u, team: $t) isa team-membership;
(reader: $t, readable: $r) isa read-access;
} then {
(reader: $u, readable: $r) isa read-access;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment