Skip to content

Conversation

@tanner0101
Copy link
Member

Implements pagination helpers using new APIs from vapor/fluent-kit#130.

struct TodoController {
    func index(req: Request) throws -> EventLoopFuture<Page<Todo>> {
        Todo.query(on: req.db).paginate(for: req)
    }
}

@tanner0101 tanner0101 added enhancement New feature or request semver-minor Contains new APIs labels Jan 16, 2020
@tanner0101 tanner0101 merged commit 7793f5c into master Jan 16, 2020
@tanner0101
Copy link
Member Author

These changes are now available in 4.0.0-beta.2.1

@tanner0101 tanner0101 deleted the tn-pagination branch January 16, 2020 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request semver-minor Contains new APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant