The total number of documents in the query result. Only available if the
count
option was used.
Whether the cursor has any remaining batches that haven't yet been
fetched. If set to false
, all batches have been fetched and no
additional requests to the server will be made when consuming any
remaining items from this cursor.
Whether the cursor has more values. If set to false
, the cursor has
already been depleted and contains no more items.
Enables use with for await
to deplete the cursor by asynchronously
yielding every value in the cursor's remaining result set.
Note: If the result set spans multiple batches, any remaining batches will only be fetched on demand. Depending on the cursor's TTL and the processing speed, this may result in the server discarding the cursor before it is fully depleted.
Depletes the cursor, then returns an array containing all values in the cursor's remaining result list.
TODO
TODO
TODO
TODO
Advances the cursor and returns the next value in the cursor's remaining
result list, or undefined
if the cursor has been depleted.
Note: If the result set spans multiple batches, any remaining batches will only be fetched on demand. Depending on the cursor's TTL and the processing speed, this may result in the server discarding the cursor before it is fully depleted.
Advances the cursor and returns all remaining values in the cursor's
current batch. If the current batch has already been exhausted, fetches
the next batch from the server and returns it, or undefined
if the
cursor has been depleted.
Note: If the result set spans multiple batches, any remaining batches will only be fetched on demand. Depending on the cursor's TTL and the processing speed, this may result in the server discarding the cursor before it is fully depleted.
TODO
Generated using TypeDoc
TODO