MongoCursor::limit
(PECL mongo >=0.9.0)
MongoCursor::limit — Limits the number of results returned
Descrição
Parâmetros
-
num -
The number of results to return.
Valor Retornado
Returns this cursor.
Erros
Throws MongoCursorException if this cursor has started iterating.
Veja Também
- MongoDB core docs on » limit.
- MongoCursor::batchSize() - Limits the number of elements returned in one batch.
- MongoCursor::skip() - Skips a number of results