Total number of items in collection should not be ambiguous #76
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Both ChRIS API and Store API, transform the total count of items in any collection to an ambiguous value. If the total item count is greater than zero, it returns
totalCount: total
; But if it is zero, it returnstotalCount: -1
which is counter-intuitive and ambiguous.If this value is meant to represent errors, those should be represented by the function throwing an error rather than returning a value.
The text was updated successfully, but these errors were encountered: