Top or skip parameter gives wrong **total** field in REST API query

I have…

  • [ ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

No matter if I include the top query parameter the total field is always the same, although the items array contains the correct number of objects

Expected behavior

When I use the $top=1 parameter I want the total field to have the value 1 indicating that there is only one result

Minimal reproduction of the problem

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x ] Cloud version

Version: [VERSION]

Browser:

  • [ ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
I am querying the API using Postman
image

The total is the number of items that satisfy the filter, without skip and take.

Hi Sebastian, thanks for clarifying that