vibe.d beta banner
get vibe.d
0.7.30

Function MongoCursor.limit

Limits the number of documents that the cursor returns.

This method must be called before beginnig iteration in order to have effect. If multiple calls to limit() are made, the one with the lowest limit will be chosen.

Prototype

MongoCursor limit(
  size_t count
);

Parameters

NameDescription
count The maximum number number of documents to return. A value of zero means unlimited.

Returns

the same cursor

See Also

http://docs.mongodb.org/manual/reference/method/cursor.limit

block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License