JUGLviv

Meta


Share on:


#tip #mongo #limit

JUG LvivJUG Lviv

Interesting thing with mongo quering
Do you know result of db.myCollection.find().limit(0)?
It will be the same to db.myCollection.find() and return everything from collection
What about such thing db.myCollection.find().limit(-12)? Will it work at all?
Yes It will return the same to db.myCollection.find().limit(+12)

Bitnami