Skip to content

feat(query): custom populate query #445

Open
@muniperez

Description

@muniperez

Do you want to request a feature or report a bug?
feature

What is the current behavior?
In order to populate a query you need to provide a child and a root.

What is the expected behavior?
Let's say you have a list of items AND you have to apply pagination on them.

{
 "userFeed" : {
  "{user_id}" : {
   "posts" :  {
     "{post_id}": true,
     "{post_id}": true,
     "{post_id}": true,
     "{post_id}": true
    }
  }
 }
}

Currently, in order to populate a request, you need to provide both "child" and "root".

But in this case, if I want to apply a pagination, although the root is known, there's no child because the path has to be:

/userFeed/{user_id}/posts&limitToLast={number}

My request is to add a populate query for items in a list where the child is the key of each item.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions