Skip to content

On-demand pagination for toMany relations #1686

Closed
@soyuka

Description

@soyuka

There has been some demand on this particular feature.

Example:

Resource {
  name
  ChildResource[]
}

GET /api/resource

{
  name: 'foo',
  childResources: [1,2,3 ... 30 ] // paginated
}

I'm really not sure how / if we can pull this out but I'm opening this issue to keep track of ideas suggestions.

About the configuration we could use @ApiProperty(attributes={"paginate": true}) with maybe some more parameters to control that pagination?

We may also flag this as a "wontfix" and propose an alternative solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions