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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -