📌  相关文章
📜  使用 mongoose 从 mongodb 节点 js 获取数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:00.101000             🧑  作者: Mango

代码示例5
// Define schema
var Schema = mongoose.Schema;

var SomeModelSchema = new Schema({
  a_string: String,
  a_date: Date
});

// Compile model from schema
var SomeModel = mongoose.model('SomeModel', SomeModelSchema );