DocumentRange

Range for iterating over a collection using a Schema.

Constructors

this
this(Cursor cursor)
Undocumented in source.

Members

Aliases

Cursor
alias Cursor = MongoCursor!Bson
Undocumented in source.

Functions

limit
auto limit(size_t count)

Limits the number of documents that the cursor returns.

opApply
int opApply(int delegate(Schema doc) del)

Iterates over all remaining documents.

popFront
void popFront()

Advances the cursor to the next document of the response.

skip
auto skip(int count)

Skips a given number of elements at the beginning of the cursor.

sort
auto sort(T order)

Controls the order in which the query returns matching documents.

Properties

empty
bool empty [@property getter]

Returns true if there are no more documents for this cursor.

front
Schema front [@property getter]

Returns the current document of the response.

Meta