https://authzed.com logo
#spicedb
Title
# spicedb
j

Joey

08/17/2022, 2:16 PM
you'll likely need to write "inverse" relationships for this to function. for your first example:
Copy code
definition org {
  relation child: org
  relation member: user

  permission is_member = member + child->is_member
}
would have
is_member
return for the member of the org or any of its child orgs