【发布时间】:2016-12-19 07:18:22
【问题描述】:
我有 Mongoose schema 和一个 model:
var MyClientSchema = new mongoose.Schema({
fist_name: {
type: String
},
phone_number: {
type: String
}
});
var MyClient = mongoose.model('MyClient', MyClientSchema);
我应该如何记录(使用 JSDoc)MyClient 和/或MyClientSchema 以获取来自WebStorm 的制表符补全和输入建议,这两种方法都继承自mongoose.model,例如@987654327 @ - 并继承自架构 - 如 phone_number and first_name ?
【问题讨论】:
标签: node.js mongoose jsdoc mongoose-schema