mongoose将默认模型/模式值设置为null

时间:2015-09-08 16:35:09

标签: mongodb mongoose

如何将架构的键/值设置为null

var TheModelSchema = new Schema({
  someNullKey: null, // is this possible?
  someDate: Date,
  someString: String,
})

文档查看:

其他问题:

0 个答案:

没有答案