MongoDB card reviewmedium
What is the $match stage in MongoDB aggregation?
The $match stage filters documents based on specified conditions. It works similarly to the WHERE clause in SQL. Using $match early in an aggregation pipeline reduces the amount of data processed by later stages.