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

asked
User Lyte
by
7.9k 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.

answered
User Harry Ng
by
7.9k points

Related questions

1 answer
3 votes
234k views
1 answer
0 votes
14.0k views
asked Mar 21, 2024 222k views
Alishia asked Mar 21, 2024
by Alishia
8.3k points
1 answer
4 votes
222k views