GoLang MongoCursor::limit

request it (387)
GoLang replacement for PHP's MongoCursor::limit [edit | history]



Do you know a GoLang replacement for PHP's MongoCursor::limit? Write it!

PHP MongoCursor::limit

PHP original manual for MongoCursor::limit [ show | php.net ]

MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Description

public MongoCursor MongoCursor::limit ( int $num )

Parameters

num

The number of results to return.

Return Values

Returns this cursor.

Errors/Exceptions

Throws MongoCursorException if this cursor has started iterating.

See Also