Skip to content

Instance Method

range(_:)

Limits the results of this query to the specified range.
@discardableResult func range(_ range: ClosedRange<Int>) -> Self

Return Value

Query builder for chaining.

Discussion

query.range(2..<5) // returns at most 3 results, offset by 2