2016-08-12 7 views
8

나는 Mongoose스키마이 있고 모델 : I 탭 완성을 얻고 상속 두 방법에 대한 WebStorm에서 제안을 입력 MyClient 및/또는 MyClientSchema을 (JSDoc 사용) 문서화하는 방법을JSDoc + Mongoose : 몽구스 모델을 문서화하는 방법?

var MyClientSchema = new mongoose.Schema({ 
    fist_name: { 
     type: String 
    }, 
    phone_number: { 
     type: String 
    } 
}); 

var MyClient = mongoose.model('MyClient', MyClientSchema); 

mongoose.model에서 remove, findOne, find처럼 - 스키마에서 상속 - phone_number and first_name? 그것은 사용자의 특정 요구 사항에 맞지 않을 수도 있지만

답변

-2

은 공식 문서에서이 제트 뇌의 튜토리얼은

예를 들어 https://www.jetbrains.com/help/webstorm/2017.1/creating-jsdoc-comments.html

,

/** 
* MyClientSchema schema 
* @constructor MyClient 
*/ 

var MyClientSchema = new mongoose.Schema({ 
     fist_name: { 
      type: String 
     }, 
     phone_number: { 
      type: String 
     } 
    }); 

을 필요한 대부분 다음과 같은 JS를 설명 거의 모든 것을 할 수있는 지침이 될 수도 있습니다.

http://nagyv.github.io/estisia-wall/models.js.html