Tag: mongoose jsdoc mongoose

JSDoc + Mongoose:如何loggingMongoose模型?

我有Mongoose 模式和一个模型 : var MyClientSchema = new mongoose.Schema({ fist_name: { type: String }, phone_number: { type: String } }); var MyClient = mongoose.model('MyClient', MyClientSchema); 我应该怎样使用JSDoc MyClient和/或MyClientSchema来从WebStorm获取从WebStorminheritance的两个方法(如remove, findOne, find和从模式inheritance的phone_number and first_name ?