Skip to content

Sort and filter in population #109

Description

@Pablo-Galbusera

Hi Loris,
I'm using your lib for a long time and it's amazing: thanks!

I found some limits in sorting and filtering in populated content.

If I've understand well, it's impossible to sort by populated fields:
?populate=a,b,c&sort=a.f1,b.f2,c.f1

or to filter by populated fields:
?populate=a,b,c&a.f1=value&b.f2=value2

Is it right?
Do you have any suggestion about this need?

At the moment I tried to use "advanced filter" like
filter={"$or":[{"key1":"value1"},{"key2":"value2"}]}
but it's not so comfortable.

Thanks for any help ✌️

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions