razee-io / Razee

Overview and docs
Apache License 2.0
423 stars 36 forks source link

Provide totalCount in addition to count on Resources query #114

Closed finken2 closed 4 years ago

finken2 commented 4 years ago

When the resources query is called with a filter, it would be useful to have the totalCount returned in addition to the filtered count.

Alternatively, we could stick with one value, count and say it always represents the total, and ignores the filter. This would be consistent with how the query works now when the count is higher than the limit. Only limit items are returned, but the count tells you the actual total.

Essentially, i need to know that filter: xxx matched 8 out of 9,743 items.

finken2 commented 4 years ago
 "data": {
    "resources": {
      "count": 8,
      "totalCount": 9873,