authzed / spicedb

Open Source, Google Zanzibar-inspired database for scalably storing and querying fine-grained authorization data
https://authzed.com/docs
Apache License 2.0
5.1k stars 278 forks source link

request: language support for inverse relations #356

Open vroldanbet opened 2 years ago

vroldanbet commented 2 years ago

The ask

SpiceDB language could have native support to denote the inverse of a relationship

Example:

definition repository {
  relation owner: User
}

definition user {
  inverse relation repositories: repository#owner
}

The goal

jhalleeupgrade commented 1 year ago

Adding a +1 on this issue. We found ourselves needing to add inverse relationships for most of our use-cases.

mmx86 commented 3 months ago

+1