InterviewSolution
Saved Bookmarks
| 1. |
____________ works similar to HAVING clause in SQL.(a) $setcon(b) $group(c) $match(d) None of the mentionedThe question was asked during an online interview.I would like to ask this question from SQL to Aggregation Mapping Chart topic in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB |
|
Answer» CORRECT answer is (c) $MATCH To elaborate: Place the $match as EARLY in the aggregation PIPELINE as possible. |
|