Suppose I have such a circuit
var Language = new Schema({ name: { type: String, unique: true, required: true }, pos: [{ name: String, attributes: [{ name: String }] }] });
Will each element in pos and attributes have _id ? If I add a unique index to the name field in the pos array, will uniqueness only apply to this array or will it be unique to all entries?
source share