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

Infinitely recursive relations #4

Merged
merged 9 commits into from
Oct 27, 2018
Merged

Infinitely recursive relations #4

merged 9 commits into from
Oct 27, 2018

Conversation

twof
Copy link
Owner

@twof twof commented Oct 27, 2018

try router.crud(register: User.self, .only([.read])) { controller in
    try controller.crud(children: \.todos, .only([.read])) { childrenController in
        try childrenController.crud(siblings: \.tags, .only([.read])) { siblingsController in
            try siblingsController.crud(siblings: \.todos, .only([.read]))
        }
    }
}

@twof twof merged commit eb50c01 into master Oct 27, 2018
@twof twof deleted the recursive-relations branch October 27, 2018 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant