Skip to content

Referencing relation on "grandparent" (or more distantly related) objects #16

Answered by torstenbm
torstenbm asked this question in Q&A
Discussion options

You must be logged in to vote

Is something like this considered best practices for these cases?

type drive
  relations
    define member as self

type folder
  relations
    define parent_drive as self
    define is_member_of_parent_drive as member from parent_drive
    define read_drive as is_member_of_parent_drive

type doc
  relations
    define parent_folder as self
    define is_member_of_parent_drive_of_parent_folder as is_member_of_parent_drive from parent_folder
    define read_doc as is_member_of_parent_drive_of_parent_folder

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rhamzeh
Comment options

@torstenbm
Comment options

Answer selected by torstenbm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Modeling questions related to modeling
2 participants