1.

________ passes the first n documents unmodified to the pipeline where n is the specified limit.(a) $skip(b) $limit(c) $match(d) $redactThis question was addressed to me in exam.This intriguing question originated from Aggregation Operations topic in section Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The correct choice is (b) $limit

The best I can explain: For each INPUT document, OUTPUTS EITHER one document (for the first n documents) or ZERO documents (after the first n documents).



Discussion

No Comment Found

Related InterviewSolutions