Skip to content

Show a collection of resources by one user: Scoped collections / queries with hierarchies #295

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

Open
joepio opened this issue Jan 26, 2022 · 0 comments

Comments

@joepio
Copy link
Member

joepio commented Jan 26, 2022

I want to have a list of my documents, my invites, etc. We can't do this (on a shared server) with one Query. How should we achieve this?

I'm not talking about auhtorization (that's already working), I'm talking about hierarchies.

Use multiple QueryFilters

We could to it with two filters, consecutively.

e.g. is_a = document and parent = drive.

However, this still does not cover nested data.
To do this would require a far more complicated query (with recursive logic), not sure how we should express this.

Add a parent filter to Query resources

We can recursively check if the parent matches.
Might also solve searching inside a hierarchy #226

edit: May be duplicate of #481

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

No branches or pull requests

1 participant