Cursor Methods
Handling the results of a query on a collection
Cursor methods in MerlinDB are essential features for efficiently retrieving and manipulating data from collections.
Here are the cursor methods used:
sort (Access): Sorts the documents in a collection;
limit (Access): Limits the number of documents returned in a collection;
skip (Access): Skipping a number of documents in a collection;
forEach (Access): Iterates over data from a document in a collection;
pretty (Access): Returns readable documents from a collection;
map (Access): Transforms the documents of a query;
maxTimeMs (Access): Define a maximum time for executing an operation in the query;
hint (Access): Uses indexes to quickly query the collection;
returnKey (Access): Returns only the indexes of a collection;
cursorSize (Access): Returns the number of documents in a query in the collection;
max (Access): Limits a maximum value for a query in the collection;
min (Access): Limits a min value for a query in the collection;