Is it possible to perform a query and only get back the total rows that meets the query criteria?
In a way, yes. You can set the pageSize to 1 and check for the “totalObjects” parameter returned from the server. The totalObject contains the total number of objects matching the query you send. However, we’re planning to move support for counting total number of objects into a separate method, thus breaking the backwards compatibility.
To clarify, in the future there will be a separate API function to return the total object count based on the query? Not sure what is meant by breadking backwards compatibility?
To clarify, in the future there will be a separate API function to return the total object count based on the query?
Yes
Not sure what is meant by breadking backwards compatibility?
If you rely on the fact that the totalObjects property is there, the code will break once it is removed. We will give plenty of time to developers to make that change in their code.
Thanks for the info
Is there an estimated time when this new functionality be implemented?
In light of all existing query responses will not return the totalObjects found from the query, is there a draft API to return the totalObjects from a query?
We do not have an estimate for this yet. With the current workload it will be about 3-4 months.