This is working fine for me ([email protected]
)
var schema = new mongoose.Schema({
factors: [{type: String, enum: ['1', '2', '3'], required: ...}]
...
})
Note I’m using an Array of Objects
This is working fine for me ([email protected]
)
var schema = new mongoose.Schema({
factors: [{type: String, enum: ['1', '2', '3'], required: ...}]
...
})
Note I’m using an Array of Objects