Back to Developer Roadmap

$match

src/data/roadmaps/mongodb/content/match@_c7itVw1R1_UB-NPtL-WI.md

4.0799 B
Original Source

$match

The $match aggregation stage filters documents in the pipeline, similar to the find() query operation. It should be placed early in the pipeline to reduce document count and improve performance. $match supports all query operators and can use indexes when positioned at the beginning of the pipeline, making it essential for efficient data filtering in aggregation workflows.

Visit the following resources to learn more: