Skip to content

Query syntax error? #81

Description

@gutenye

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions