Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flyingsilverfin/5cec97bb5b59eb798afabe61b29e7d33 to your computer and use it in GitHub Desktop.
Save flyingsilverfin/5cec97bb5b59eb798afabe61b29e7d33 to your computer and use it in GitHub Desktop.
Rules in TypeDB blog: create infinite relations with a rule
rule infinite-list:
when {
$r isa list-node;
} then {
(previous: $r) isa list-node;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment