Skip to content

Incorrect meta when page query param is out of bound #1103

@JulienTApizee

Description

@JulienTApizee

When passing a page in a query param that is out of bound (eg page 200 for 27 total database entries), the properties totalItems currentPage totalPages are incorrect:

  • Result with page=2 as query param
Image
  • Result with page=200 as query param
Image

However, the properties are correct when using paginationType: PaginationType.LIMIT_AND_OFFSET AND defining relations on the configuration (still incorrect without relations)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions