Version using default version key. See http://mongoosejs.com/docs/guide.html#versionKey If you're using another key, you will have to access it using []: doc[_myVersionKey]
Collection the model uses.
Connection the model uses.
Virtual getter that by default returns the document's _id field cast to a string, or in the case of ObjectIds, its hexString. This id getter may be disabled by passing the option { id: false } at schema construction time. If disabled, id behaves like any other field on a document and can be assigned any value.
Schema the model uses.
Override whether mongoose thinks this doc is deleted or not
whether mongoose thinks this doc is deleted.
Deletes the document from the db.
optional callback
Signal that we desire an increment of this documents version.
Returns another Model instance.
model name
Removes this document from the db.
optional callback
Saves this document.
options optional options
optional callback
Generated using TypeDoc
Interface that describes the model of a file entry in MongoDB