By default, documents in a MongoDB collection must contain: Check all that apply:
题目选项
- A.the same fields for every document in the collection.
- B.at least 2 fields.
- C.the _id field.
答案置信度:高
正确答案:C
解析语言:中文
MongoDB 会为每个集合自动创建 _id 索引,插入文档时必须带 _id(未提供时由驱动/服务端自动生成 ObjectId),所以 C 正确。A、B 错:同一集合各文档字段可以完全不同,字段数量也没有下限,只有 _id 是必有的。