1.

To suppress the _id field from the result set, specify _________ in the projection document.(a) _id: 1(b) _id: 0(c) _id: it(d) None of the mentionedThis question was addressed to me during an internship interview.Asked question is from Read Operations in division MongoDB CRUD Concepts and Operation of MongoDB

Answer»

The CORRECT answer is (B) _id: 0

Explanation: By DEFAULT, the _id field is INCLUDED in the results.



Discussion

No Comment Found

Related InterviewSolutions