📜  npm mongoose findorcreate - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:53.550000             🧑  作者: Mango

代码示例1
var findOrCreate = require('mongoose-findorcreate')var ClickSchema = new Schema({ ... });ClickSchema.plugin(findOrCreate);var Click = mongoose.model('Click', ClickSchema);