vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function MongoCursor.limit

Limits the number of documents that the cursor returns.

MongoCursor limit (
  long count
);

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

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

Authors

Sönke Ludwig

Copyright

© 2012-2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.