- Reference >
- Operators >
- Aggregation Framework Operators >
- Pipeline Aggregation Operators >
- $skip (aggregation)
$skip (aggregation)¶
-
$skip¶ Skips over the specified number of documents that pass through the
$skipin the pipeline before passing all of the remaining input.$skiptakes a single numeric (positive whole number) value as a parameter. Once the operation has skipped the specified number of documents, it passes all the remaining documents along the pipeline without alteration. Consider the following example:This operation skips the first 5 documents passed to it by the pipeline.
$skiphas no effect on the content of the documents it passes along the pipeline.