If I have the following queryBuilder query in the node.js client API:
db.client.documents.query(
q.where(
q.collection('records'),
q.or(
q.value('id', [1,2,3,4])
)
).slice(0, 50)
)
This would give me the first 50 records related to this query. It would also give me a count of 50, even if there are 1000 records related to this query.
If I do a query with:
.withOptions({categories: 'none'})
I can see the real count for the query.
Is there a built-in option to give me a single page of data AND get the full count for the query?