Skip to content

Table.limit()

David Fahlander edited this page May 8, 2014 · 6 revisions

Returns a Collection limited to N items.

Syntax

db.[table].limit(N)

Return Value

Collection

Remarks

This method is equivalent to:

db.[table].toCollection().limit(N)

or:

db.[table].orderBy(':id').limit(N)
Clone this wiki locally