Featured
-
How to solve [MongoError: connect ECONNREFUSED]
Hello Readers, I came across a solution while w
by saroj.singh
Tags
MongoDB : Limit and Skip
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()....
MongoDB : Skip
MongoDB - Skip Query
Sometime we need to find out certain number of record after a certain number of record.
e.g. We need to find out 10 record start after 10th index
db.collection.find().skip(10).pretty();
It is equivalent in SQl: ...