← BYTES
MongoDB·Starter·Ref: 28.1.4
What does the automatically-created _id field in every document represent?
Have a question about this video? Mention reference 28.1.4 when you contact us.
a.The document's unique primary key within its collection
b.A random display label with no real purpose
c.The name of the collection it lives in
d.The database's version number
_id is the document's primary key, unique within its collection; if not supplied, MongoDB generates an ObjectId for it automatically.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES2814#MongoDB