Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent/Child Object-Object relationship modeling #514

Closed
smaddock opened this issue Sep 26, 2023 · 1 comment · Fixed by #520
Closed

Parent/Child Object-Object relationship modeling #514

smaddock opened this issue Sep 26, 2023 · 1 comment · Fixed by #520
Assignees
Labels
bug Something isn't working

Comments

@smaddock
Copy link

smaddock commented Sep 26, 2023

I'm working my way through https://openfga.dev/docs/modeling/getting-started and getting hung up on the second "Important" alert under Relation: Parent that states:

In the current OpenFGA version, there is no way to state that a document's parent is either a drive or folder. The application must enforce this.

Since everything is arbitrary strings, I don't understand why I can't define parent: [folder,drive]

I tried skimming Managing Relationships Between Objects, Object to Object Relationships, and Parent-Child Objects, but couldn't find any additional information.

@adriantam
Copy link
Member

@smaddock : Thank you for calling this out. Indeed that you can have define parent: [folder,driver]. The information above was obsolete.

We will update the documents to reflect thisl

@adriantam adriantam self-assigned this Oct 3, 2023
adriantam added a commit that referenced this issue Oct 3, 2023
…striction

In `Get Started With Modelling` mention that we can do direct relationship type restriction

Close #514
@adriantam adriantam added the bug Something isn't working label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants