Skip to content

Instance Method

limit(_:)

Adds a LIMIT clause to the query. If called more than once, the last call wins.
@discardableResult func limit(_ max: Int?) -> Self

Parameters

max

Optional maximum limit. If nil, any existing limit is removed. The value may not be negative.