1.

Which of the following is the second argument to projection?(a) findOne()(b) findOne1()(c) selectOne()(d) find()I got this question during a job interview.Enquiry is from Read Operations topic in portion MongoDB CRUD Concepts and Operation of MongoDB

Answer»

Right choice is (d) find()

Explanation: Projections are the second argument to the find() METHOD, which specifies a LIST of fields to RETURN or list fields to exclude in the RESULT documents.



Discussion

No Comment Found

Related InterviewSolutions