atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

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

Open joepio opened this issue 3 years ago • 0 comments

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

joepio avatar Jan 26 '22 10:01 joepio