MongoDB Skip

Mongodb skip() method skip the specified number of documents in the query result.

Syntax

 
db.collection.find().skip(number)
 

The number is a positive integer that specifies maximum number of documents to skip.

Example

db.students.find().skip(3);

This will skip the first three matching documents and return the rest of the matches. If there are fewer than three documents in your collection, it will not return any documents.

mongodb skip