gmanroney / supportscheduler

Simple scheduling tool for workers using node, mongo and angularjs technologies
0 stars 0 forks source link

Lack of pagination, sorting and searching of engineers and schedules makes application difficult to use #3

Open gmanroney opened 6 years ago

gmanroney commented 6 years ago

Lack of pagination, sorting and searching of engineers and schedules makes application difficult to use

gmanroney commented 6 years ago

this might help

https://stackoverflow.com/questions/5539955/how-to-paginate-with-mongoose-in-node-js

gmanroney commented 6 years ago

Started work on the implementation. Basic syntax which seems to work:

db.schedules.find().skip(1).limit(10); db.schedules.find().skip(2).limit(10); db.schedules.find().skip(3).limit(10);

https://stackoverflow.com/questions/5525304/how-to-do-pagination-using-range-queries-in-mongodb