- Reference >
- Operators >
- Aggregation Pipeline Operators >
- Pipeline Aggregation Stages >
- $skip (aggregation)
$skip (aggregation)¶
On this page
Definition¶
- $skip¶
Skips over the specified number of documents that pass into the stage and passes the remaining documents to the next stage in the pipeline.
The $skip stage has the following prototype form:
{ $skip: <positive integer> }
$skip takes a positive integer that specifies the maximum number of documents to skip.
Example¶
Consider the following example:
db.article.aggregate(
{ $skip : 5 }
);
This operation skips the first 5 documents passed to it by the pipeline. $skip has no effect on the content of the documents it passes along the pipeline.
Thank you for your feedback!
We're sorry! You can Report a Problem to help us improve this page.