Add alias for skip/offet (mongoose)
This commit is contained in:
parent
84881a00e9
commit
adf2a0502e
|
@ -145,6 +145,8 @@ MongooseAdapter.prototype.all = function all(model, filter, callback) {
|
|||
}
|
||||
if (filter.skip) {
|
||||
query.skip(filter.skip);
|
||||
} else if (filter.offset) {
|
||||
query.skip(filter.offset);
|
||||
}
|
||||
query.exec(function (err, data) {
|
||||
if (err) return callback(err);
|
||||
|
|
Loading…
Reference in New Issue