5️⃣FindCursor
FindCursor
class is an internal class that can be used to iterate over results from current collection.
🔹 Methods
sort
Set the sort order of the cursor query.
Type
skip
Set the skip for the cursor.
Type
limit
Set the limit for the cursor.
Type
toArray
Return an array of documents. Note that the array only contains partial results when this cursor had been previously accessed.
Type
Example
Last updated