Instance Method
paginate(_:)
Returns a single
Page out of the complete result set according to the supplied PageRequest.func paginate(_ request: PageRequest) -> EventLoopFuture<Page<Model>>
Parameters
requestDescribes which page should be fetched.
Return Value
A single Page of the result set containing the requested items and page metadata.
Discussion
This method will first count() the result set, then request a subset of the results using range() and all().