Counting
To return the count of documents that currently exist in a collection, you can call the LENGTH() function:
RETURN LENGTH(collection)
Internally, COLLECTION_COUNT() is called.
To return the count of documents that currently exist in a collection, you can call the LENGTH() function:
RETURN LENGTH(collection)
Internally, COLLECTION_COUNT() is called.