0

これが正しいかどうかはわかりませんが、IMO は TRUE を出力し、FALSE を出力するはずです。

私は何か間違ったことをしていますか?

 var mongoose = require('mongoose');

 var NestedSchema = new mongoose.Schema({
     nestedProperty: {
         nestedValue: String
     }
}); 

var Nested = mongoose.model('Nested', NestedSchema);

var instance = new Nested();

instance.nestedProperty = null;

console.log(instance.nestedProperty == null);
4

1 に答える 1