-
Hi! The part of the docs, Referencing Relations On Related Objects, do a great job of describing how to reference relations on related objects, but what if two objects are related only through a third object (or even further away)? Imagine the following case: We have three objects: drive, folder and doc. A user can be a member of a drive, and a drive can have a folder and a folder can have a doc.
Now if we want to create a relation read_folder such that only members of the parent drive of a folder have it, we would as the docs describe modify the folder type to something like this:
How do I go about defining a relation
but that gives me a syntax error. In other words: given the tuples
To define the relation How do I define the relation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Is something like this considered best practices for these cases?
|
Beta Was this translation helpful? Give feedback.
Is something like this considered best practices for these cases?