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 : Limit
MongoDB - Limit Query
Sometime we need to find out certain number of record. In MongoDB we can achieve this through "limit" option.
e.g. We need to find 10 record from any collection.
db.collection.find().limit(10).pretty();
It is e...