Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/reference/schema-lang.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ permission can_only_read = reader - writer

Arrows allow for "walking" the heirarchy of relations (and permissions) defined for an object, referencing a permission or relation on the _resulting_ object.

:::info
When using the arrow operator on a subject relation, such as the `group#member` subject relation in the `relation member: user | group#member` example above, the resulting object is the _subject_ of the subject relation, not the relation itself.

That is, an expression like `member->verb` (where `member` was a `group#member`) would reference the `verb` permission on the related `group`, not the `#member`s of the `group`.
:::

For example, imagine a schema where a document is found under a folder:

```zed
Expand Down
Loading