MongoDB documents having a flexible schema means that: Check all that apply:
题目选项
- A.there is no way to enforce a preferred schema in a collection.
- B.documents are not required to have the same number of fields within one collection.
- C.a field value type can vary from document to document in a collection.
答案置信度:高
正确答案:B、C
解析语言:中文
灵活模式指同一集合内的文档不必拥有相同的字段集合、字段的值类型也可以随文档不同,所以 B、C 正确。A 错:MongoDB 3.2 起支持 schema validation(validator/$jsonSchema),可以按需为集合强制约束结构,只是默认不强制。