<inputtype="search"id="api-filter"placeholder="Type to filter APIs">
</div>
<divid="api-tabview-panel">
<ulid="api-classes"class="apis classes">
<li><ahref="../classes/Represents a
Replicaset Configuration.html">Represents a
Replicaset Configuration</a></li>
<li><ahref="../classes/Represents a BatchWriteResult.html">Represents a BatchWriteResult</a></li>
<li><ahref="../classes/Represents a Collection.html">Represents a Collection</a></li>
<li><ahref="../classes/Represents a Cursor..html">Represents a Cursor.</a></li>
<li><ahref="../classes/Represents a CursorStream..html">Represents a CursorStream.</a></li>
<li><ahref="../classes/Represents a Db.html">Represents a Db</a></li>
<li><ahref="../classes/Represents a GridFS File Stream..html">Represents a GridFS File Stream.</a></li>
<li><ahref="../classes/.html"></a></li>
<li><ahref="../classes/Represents a MongoClient.html">Represents a MongoClient</a></li>
<li><ahref="../classes/Represents a Mongos connection with failover to backup proxies.html">Represents a Mongos connection with failover to backup proxies</a></li>
<li><ahref="../classes/Represents a OrderedBulkOperation.html">Represents a OrderedBulkOperation</a></li>
<li><ahref="../classes/Represents a Read Preference..html">Represents a Read Preference.</a></li>
<li><ahref="../classes/Represents a Server connection..html">Represents a Server connection.</a></li>
<li><ahref="../classes/Represents a UnorderedBulkOperation.html">Represents a UnorderedBulkOperation</a></li>
<li><ahref="../classes/Represents the Admin methods of MongoDB..html">Represents the Admin methods of MongoDB.</a></li>
<li><ahref="../classes/Represents the Grid..html">Represents the Grid.</a></li>
<li><ahref="../classes/Represents the GridStore..html">Represents the GridStore.</a></li>
Defined in: <ahref="../files/bin_node_modules_mongodb_lib_mongodb_cursor.js.html#l13"><code>bin/node_modules/mongodb/lib/mongodb/cursor.js:13</code></a>
<p>Constructor for a cursor object that handles all the operations on query result
using find. This cursor object is unidirectional and cannot traverse backwards. Clients should not be creating a cursor directly,
but use find to acquire a cursor. (INTERNAL TYPE)</p>
<p>Options</p>
<ul>
<li><strong>skip</strong> {Number} skip number of documents to skip.</li>
<li><strong>limit</strong> {Number}, limit the number of results to return. -1 has a special meaning and is used by Db.eval. A value of 1 will also be treated as if it were -1.</li>
<li><strong>sort</strong> {Array | Object}, set to sort the documents coming back from the query. Array of indexes, [['a', 1]] etc.</li>
<li><strong>hint</strong> {Object}, hint force the query to use a specific index.</li>
<li><strong>explain</strong> {Boolean}, explain return the explaination of the query.</li>
<li><strong>snapshot</strong> {Boolean}, snapshot Snapshot mode assures no duplicates are returned.</li>
<li><strong>timeout</strong> {Boolean}, timeout allow the query to timeout.</li>
<li><strong>tailable</strong> {Boolean}, tailable allow the cursor to be tailable.</li>
<li><strong>awaitdata</strong> {Boolean}, awaitdata allow the cursor to wait for data, only applicable for tailable cursor.</li>
<li><strong>oplogReplay</strong> {Boolean}, sets an internal flag, only applicable for tailable cursor.</li>
<li><strong>batchSize</strong> {Number}, batchSize the number of the subset of results to request the database to return for every request. This should initially be greater than 1 otherwise the database will automatically close the cursor. The batch size can be set to 1 with cursorInstance.batchSize after performing the initial query to the database.</li>
<li><strong>raw</strong> {Boolean}, raw return all query documents as raw buffers (default false).</li>
<li><strong>read</strong> {Boolean}, read specify override of read from source (primary/secondary).</li>
<li><strong>returnKey</strong> {Boolean}, returnKey only return the index key.</li>
<li><strong>maxScan</strong> {Number}, maxScan limit the number of items to scan.</li>
<li><strong>min</strong> {Number}, min set index bounds.</li>
<li><strong>max</strong> {Number}, max set index bounds.</li>
<li><strong>maxTimeMS</strong> {Number}, number of miliseconds to wait before aborting the query.</li>
<li><strong>showDiskLoc</strong> {Boolean}, showDiskLoc show disk location of results.</li>
<li><strong>comment</strong> {String}, comment you can put a $comment field on a query to make looking in the profiler logs simpler.</li>
<li><strong>numberOfRetries</strong> {Number}, numberOfRetries if using awaidata specifies the number of times to retry on timeout.</li>
<li><strong>dbName</strong> {String}, dbName override the default dbName.</li>
<li><strong>tailableRetryInterval</strong> {Number}, tailableRetryInterval specify the miliseconds between getMores on tailable cursor.</li>
<li><strong>exhaust</strong> {Boolean}, exhaust have the server send all the documents at once as getMore packets.</li>
<li><strong>partial</strong> {Boolean}, partial have the sharded system return a partial result from mongos.</li>