Struct MongoCursor
Represents a cursor for a MongoDB query.
Use foreach( doc; cursor ) to iterate over the list of documents.
This struct uses reference counting to destroy the underlying MongoDB cursor.
Properties
Name | Type | Description |
---|---|---|
empty
[get]
|
bool |
Returns true if there are no more documents for this cursor. |
front
[get]
|
Bson |
Returns the current document of the response. |
Methods
Name | Description |
---|---|
limit
|
Limits the maximum documents that cursor returns. |
opApply
|
Iterates over all remaining documents. |
opAssign
|
|
popFront
|
Advances the cursor to the next document of the response. |
sort
|
Controls the order that the query returns matching documents.
|
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.