💔 $skip stage:
In the MongoDB aggregation framework, the $skip stage is used to skip the specified number of documents from the beginning of the result set.
💧 Syntax:
{$skip: <positive 64-bit integer>}
Example:
db.article.aggregate([
{ $skip : 5 }
]);
💢 Explanation:
Here, the $skip stage skips the 5 documents from the beginning of the result set of the aggregation pipeline.
Post a Comment