1.

Which of the field is reserved for use as a primary key?(a) _id(b) _uid(c) _uuid(d) All of the mentionedI have been asked this question in an online quiz.My question is taken from ObjectId in portion GridFS, BSON Datatype and Administration Concepts of MongoDB

Answer»

Correct answer is (a) _id

Easiest explanation: ID value value MUST be unique in the COLLECTION, is IMMUTABLE, and may be of any type other than an ARRAY.



Discussion

No Comment Found

Related InterviewSolutions