180k views
5 votes
Unlike the find() method, $match does not allow for ___.

User Lyte
by
7.4k points

1 Answer

4 votes

Final answer:

The $match operator in MongoDB's aggregation framework does not allow for complex query logic, unlike the find() method.

Step-by-step explanation:

Unlike the find() method, the $match operator in MongoDB's aggregation framework does not allow for complex query logic. The $match stage is used to filter documents in a collection based on specified criteria. It only supports simple equality matches, range queries, and some basic logical operations like AND and NOT.

User Harry Ng
by
7.2k points