Tuesday, 5 January 2016

MongoDB -- limit() and skip()

Limitation of documents:

we can query on the basis of how much of limit of documents and also skip them:

following are the commands:
    db.collection_name.find({key:value}).limit(2)
    db.collection_name.find({key:value}).limit(2).skip(2)




No comments:

Post a Comment