Data Types on MongoDB related Questions and Answers


Question :   Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument
1. x = ObjectIdAdd()
2. x = addObjectId()
3. x = ObjectId()
4. none of the mentioned
Answer :   3 - x = ObjectId()  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter