1.

___________ returns either the non-null result of the first expression.(a) $Null(b) $ifNull(c) $ElseNull(d) None of the mentionedI had been asked this question during an interview.Question is taken from Pipeline Operators topic in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The CORRECT choice is (B) $ifNull

Explanation: $ifNull RETURNS the result of the SECOND expression if the first expression results in a NULL result.



Discussion

No Comment Found

Related InterviewSolutions