Explanation: MongoDB clients should add an _id field with a unique ObjectId. 9. __________ returns the JavaScript representation in the form of a string literal
A. toStringJava()
B. toString()
C. String()
D. None of the mentioned
Answer:A
Explanation: MongoDB clients should add an _id field with a unique ObjectId. 9. __________ returns the JavaScript representation in the form of a string literal
A. toStringJava() B. toString() C. String() D. None of the mentioned
Explanation:In previous versions, toString() returns the hexadecimal string representation, which as of version 2.2 can be retrieved by the str property. 10.Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument