the number of documents to skip.
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.
{Array | Object}, set to sort the documents coming back from the query. Array of indexes, 1 etc.
{Object}, hint force the query to use a specific index.
return the explaination of the query.
Snapshot mode assures no duplicates are returned.
the allow the query to timeout.
allow the cursor to be tailable.
allow the cursor to wait for data, only applicable for tailable cursor.
sets an internal flag, only applicable for tailable cursor.
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.
return all query documents as raw buffers (default false).
specify override of read from source (primary/secondary).
only return the index key.
limit the number of items to scan.
set minimum index bounds.
set maximum index bounds.
the number of miliseconds to wait before aborting the query.
show disk location of results.
you can put a $comment field on a query to make looking in the profiler logs simpler.
if using awaidata specifies the number of times to retry on timeout.
override the default dbName.
specify the miliseconds between getMores on tailable cursor.
have the server send all the documents at once as getMore packets.
have the sharded system return a partial result from mongos.
allow the cursor to wait for data, only applicable for tailable cursor.
batchSize the number of the subset of results to request the database to return for every request.
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.
you can put a $comment field on a query to make looking in the profiler logs simpler.
override the default dbName.
have the server send all the documents at once as getMore packets.
return the explaination of the query.
{Object}, hint force the query to use a specific index.
the number of results to return.
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.
set maximum index bounds.
limit the number of items to scan.
the number of miliseconds to wait before aborting the query.
set minimum index bounds.
if using awaidata specifies the number of times to retry on timeout.
sets an internal flag, only applicable for tailable cursor.
have the sharded system return a partial result from mongos.
return all query documents as raw buffers (default false).
specify override of read from source (primary/secondary).
only return the index key.
show disk location of results.
the number of documents to skip.
Snapshot mode assures no duplicates are returned.
{Array | Object}, set to sort the documents coming back from the query.
{Array | Object}, set to sort the documents coming back from the query. Array of indexes, 1 etc.
allow the cursor to be tailable.
specify the miliseconds between getMores on tailable cursor.
the allow the query to timeout.
Cursor Options