← BYTES
MongoDB·Starter·Ref: 28.1.7
What does the $match stage in an aggregation pipeline do?
Have a question about this video? Mention reference 28.1.7 when you contact us.
a.Sorts documents
b.Computes a running total
c.Joins two collections
d.Filters documents, similar to a WHERE clause in SQL
$match filters the documents passed into the pipeline, keeping only those satisfying the given query conditions -- the aggregation-pipeline equivalent of a SQL WHERE clause.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES2817#MongoDB