1.

______ expressions ignores the duplicate entries in each input array and the order of the elements.(a) set(b) boolean(c) aggregate(d) none of the mentionedThis question was posed to me at a job interview.The doubt is from Pipeline Optimization topic in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The correct option is (a) SET

Best explanation: If the set OPERATION returns a set, the operation filters out duplicates in the result to OUTPUT an ARRAY that contains only unique entries.



Discussion

No Comment Found

Related InterviewSolutions