Iterates over all documents.
Optional
options: OptionsSee Model#findById.
Model name
Returns the number of elements.
Private
_acquirePrivate
_exportPrivate
_importPrivate
_insertPrivate
_populatePrivate
_populatePrivate
_populatePrivate
_removePrivate
_replacePrivate
_updateIterates over all documents.
Optional
options: OptionsSee Model#findById.
Inserts a document.
Optional
callback: NodeJSLikeCallback<any>Removes matching documents.
Optional
callback: NodeJSLikeCallback<any>Finds a document by its identifier and remove it.
Optional
callback: NodeJSLikeCallback<any>Replaces matching documents.
Optional
callback: NodeJSLikeCallback<any>Finds a document by its identifier and replace it.
Optional
callback: NodeJSLikeCallback<any>Inserts the document if it does not exist; otherwise updates it.
Optional
callback: NodeJSLikeCallback<any>Sorts documents. See Query#sort.
Optional
order: string | numberReturns an array containing all documents.
Optional
options: OptionsSee Model#findById.
Updates matching documents.
Optional
callback: NodeJSLikeCallback<any>Finds a document by its identifier and update it.
Optional
callback: NodeJSLikeCallback<any>
Model constructor.