Documenting mongoose model methods with jsdoc
You have to be explicit about the module:
@memberof module:models~MySchema
The fact is that jsdoc is not going to infer that when you specify MySchema
you mean the MySchema
entity which is in the current module.
Same with @this
, actually. If you modify it to have the module name, then in the documentation the part about this
will have a link to the definition of MySchema
.