Closed maasencioh closed 3 years ago
Normally during pagination is necessary to sort, skip and limit a query. A proposed API could be
const cursor= Model.query({}).sort('field', 1); const total = await cursor.count(); const items = await cursor.skip(10).limit(10).all();
@maasencioh proposed implementation at https://github.com/zakodium/adonis-mongodb/pull/112
Normally during pagination is necessary to sort, skip and limit a query. A proposed API could be