1.

_______ adds numbers to return the sum, or adds numbers and a date to return a new date.(a) $addnum(b) $setadd(c) $adds(d) $addThis question was addressed to me during an internship interview.This intriguing question originated from Pipeline Limits in division Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The CORRECT option is (d) $add

For explanation: If adding NUMBERS and a date, treats the numbers as MILLISECONDS.



Discussion

No Comment Found

Related InterviewSolutions