Hi, my question is the title. And my example is as below:
var catSchema = new Schema({
name: String,
color: String,
});
var Cat = mongoose.model('Cat', catSchema);
Cat.create({ name: 'me' }, function(err, result) {
console.log(result);
});
Is it possible to get the doc saved with both `name` field and `color` field?
Or do I have to explicitly set the `color` to `null`?
I'm hoping for all suggestions.