1.

Which of the following provides similar functionality to join?(a) $unwindelem(b) $unwind(c) $unwin(d) None of the mentionedThe question was posed to me by my school teacher while I was bunking the class.The doubt is from SQL to Aggregation Mapping Chart in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Correct option is (c) $unwin

To EXPLAIN: $unwind operator allows for somewhat similar FUNCTIONALITY like JOIN, but with fields embedded within the DOCUMENT.



Discussion

No Comment Found

Related InterviewSolutions