1.

Point out the wrong statement.(a) CURRENT references the start of the field path being processed in the aggregation pipeline stage(b) All stages start with CURRENT the same as ROOT(c) DESCENDING is one of the allowed results of a $let expression(d) None of the mentionedI have been asked this question by my school principal while I was bunking the class.Origin of the question is SQL to Aggregation Mapping Chart topic in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer» RIGHT option is (c) DESCENDING is one of the allowed results of a $LET expression

The best I can explain: HOWEVER, since $ is equivalent to $$CURRENT., rebinding CURRENT CHANGES the meaning of $ ACCESSES.


Discussion

No Comment Found

Related InterviewSolutions