We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waterline query is https://github.com/waterlinejs/waterline#pagination
Users.find().limit(10).skip(20)
But trailpack-waterline use https://github.com/trailsjs/trailpack-waterline/blob/master/api/services/FootprintService.js#L53
query = Model.find(criteria)
It will get an error in this example:
GET /users?limit=10&offset=20 -> Model.find({limit: 10, offset: 20}) -> actually should be: Model.find().limit(10).skip(20)
I'm both new to trails and waterline, not sure if it's a bug.
The text was updated successfully, but these errors were encountered:
Actually, waterline supports Model.find({limit: 10, skip: 20}), so I think we need a tansformer to transform trails query to waterline query.
Model.find({limit: 10, skip: 20})
Sorry, something went wrong.
No branches or pull requests
Waterline query is https://github.com/waterlinejs/waterline#pagination
But trailpack-waterline use https://github.com/trailsjs/trailpack-waterline/blob/master/api/services/FootprintService.js#L53
It will get an error in this example:
I'm both new to trails and waterline, not sure if it's a bug.
The text was updated successfully, but these errors were encountered: