Skip to content

Instantly share code, notes, and snippets.

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