假设我有这样的架构
var Language = new Schema({
name: { type: String, unique: true, required: true },
pos: [{
name: String,
attributes: [{
name: String
}]
}]
});
pos和 中的每个项目都会attributes有一个_id? name如果我向数组中的字段添加唯一索引pos,是否会对该数组强制执行唯一性,还是对所有条目都是唯一的?