Page MenuHomeSealhub

Represents a Cursor..html
No OneTemporary

Authored By
Unknown
Size
11 KB
Referenced Files
None
Subscribers
None

Represents a Cursor..html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Represents a Cursor. - Prometheus Framework</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="../assets/css/logo.png" title="Prometheus Framework"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 0.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="../classes/Represents a
Replicaset Configuration.html">Represents a
Replicaset Configuration</a></li>
<li><a href="../classes/Represents a BatchWriteResult.html">Represents a BatchWriteResult</a></li>
<li><a href="../classes/Represents a Collection.html">Represents a Collection</a></li>
<li><a href="../classes/Represents a Cursor..html">Represents a Cursor.</a></li>
<li><a href="../classes/Represents a CursorStream..html">Represents a CursorStream.</a></li>
<li><a href="../classes/Represents a Db.html">Represents a Db</a></li>
<li><a href="../classes/Represents a GridFS File Stream..html">Represents a GridFS File Stream.</a></li>
<li><a href="../classes/.html"></a></li>
<li><a href="../classes/Represents a MongoClient.html">Represents a MongoClient</a></li>
<li><a href="../classes/Represents a Mongos connection with failover to backup proxies.html">Represents a Mongos connection with failover to backup proxies</a></li>
<li><a href="../classes/Represents a OrderedBulkOperation.html">Represents a OrderedBulkOperation</a></li>
<li><a href="../classes/Represents a Read Preference..html">Represents a Read Preference.</a></li>
<li><a href="../classes/Represents a Server connection..html">Represents a Server connection.</a></li>
<li><a href="../classes/Represents a UnorderedBulkOperation.html">Represents a UnorderedBulkOperation</a></li>
<li><a href="../classes/Represents the Admin methods of MongoDB..html">Represents the Admin methods of MongoDB.</a></li>
<li><a href="../classes/Represents the Grid..html">Represents the Grid.</a></li>
<li><a href="../classes/Represents the GridStore..html">Represents the GridStore.</a></li>
</ul>
<ul id="api-modules" class="apis modules">
<li><a href="../modules/association.html">association</a></li>
<li><a href="../modules/database-accessor.html">database-accessor</a></li>
<li><a href="../modules/field-type-manager.html">field-type-manager</a></li>
<li><a href="../modules/resource-type-manager.html">resource-type-manager</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1>Represents a Cursor. Class</h1>
<div class="box meta">
<div class="foundat">
Defined in: <a href="../files/bin_node_modules_mongodb_lib_mongodb_cursor.js.html#l13"><code>bin&#x2F;node_modules&#x2F;mongodb&#x2F;lib&#x2F;mongodb&#x2F;cursor.js:13</code></a>
</div>
Module: <a href="../modules/association.html">association</a>
</div>
<div class="box intro">
<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, [[&#39;a&#39;, 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>
</ul>
</div>
<div id="classdocs" class="tabview">
<ul class="api-class-tabs">
<li class="api-class-tab index"><a href="#index">Index</a></li>
</ul>
<div>
<div id="index" class="api-class-tabpanel index">
<h2 class="off-left">Item Index</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>

File Metadata

Mime Type
text/html
Expires
Fri, Nov 27, 16:08 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1223835
Default Alt Text
Represents a Cursor..html (11 KB)

Event Timeline