$limit
Reference group: Pipeline stages
What it does
Passes at most n documents onward.
Syntax
{$limit: n}
Use case
Bound results and top-N workflows.
$limit: practical example
{ $limit: 20 }💡 Explanation
Passes at most n documents onward.
When to use it
Bound results and top-N workflows.
Key Takeaways
- Passes at most n documents onward.
- Typical use: Bound results and top-N workflows.