MongoDB - Limit with Skip
Often we need to implement pagination in any application. We can use "limit" with "skip". "skip" will select record from given index.
e.g. We need to find 10 record started form 10th index.
db.collection.find().skip(10).limit(10).pretty();
It is equivalent in SQl:
Select * from table limit 10 skip 10
0 Comment(s)