skip and limit function not work in MongoDb -


i trying find records limit , skip in options skip,limit does't work used following query

1.db.getcollection('collectionname').find({},{},{skip: 13, limit: 1000})

and query woking fine

2.db.getcollection('collectionname').find({}).skip(13).limit(1000)

but have used first 1 please suggest me solution if knows that


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -