1.

MongoDB treats the literals as projection flags, valid only in the _______ stage.(a) $project(b) $gmap(c) $match(d) None of the mentionedThis question was addressed to me in quiz.My query is from Aggregation Mechanics in section Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The CORRECT OPTION is (a) $project

The EXPLANATION is: PROJECTION flags can be 1 or true to INCLUDE the field.



Discussion

No Comment Found

Related InterviewSolutions