Iterates over all documents.
Iterates over all documents.
See Model#findById.
Iterates over all documents.
See Model#findById.
Iterates over all documents.
See Model#findById.
Iterates over all documents.
See Model#findById.
Finds a document by its identifier.
Finds a document by its identifier.
Finds a document by its identifier.
Finds a document by its identifier.
Finds a document by its identifier.
Model name
Returns the number of elements.
Returns the document at the specified index. num
can be a positive or
negative number.
Returns the document at the specified index. num
can be a positive or
negative number.
See Model#findById.
Returns the document at the specified index. num
can be a positive or
negative number.
See Model#findById.
Returns the document at the specified index. num
can be a positive or
negative number.
See Model#findById.
Returns the document at the specified index. num
can be a positive or
negative number.
See Model#findById.
Creates a new array with all documents that pass the test implemented by the provided function.
Creates a new array with all documents that pass the test implemented by the provided function.
Creates a new array with all documents that pass the test implemented by the provided function.
Creates a new array with all documents that pass the test implemented by the provided function.
Creates a new array with all documents that pass the test implemented by the provided function.
Finds matching documents.
Finds matching documents.
Limits the number of documents returned.
Skips the first elements.
Returns a plain JavaScript object.
Returns a plain JavaScript object.
Finds matching documents.
Limits the number of documents returned.
Skips the first elements.
Returns a plain JavaScript object.
Returns a plain JavaScript object.
Finds matching documents.
Limits the number of documents returned.
Skips the first elements.
Returns a plain JavaScript object.
Optional
lean?: undefinedReturns a plain JavaScript object.
Finds matching documents.
Limits the number of documents returned.
Skips the first elements.
Returns a plain JavaScript object.
Finds a document by its identifier.
Finds a document by its identifier.
Finds a document by its identifier.
Finds a document by its identifier.
Finds a document by its identifier.
Finds the first matching documents.
Finds the first matching documents.
Finds the first matching documents.
Finds the first matching documents.
Finds the first matching documents.
Returns the first document.
Returns the first document.
See Model#findById.
Returns the first document.
See Model#findById.
Returns the first document.
See Model#findById.
Returns the first document.
See Model#findById.
Iterates over all documents.
Iterates over all documents.
See Model#findById.
Iterates over all documents.
See Model#findById.
Iterates over all documents.
See Model#findById.
Iterates over all documents.
See Model#findById.
Inserts a document.
Optional
callback: NodeJSLikeCallback<any>Returns the last document.
Returns the last document.
See Model#findById.
Returns the last document.
See Model#findById.
Returns the last document.
See Model#findById.
Returns the last document.
See Model#findById.
Creates an array of values by iterating each element in the collection.
Creates an array of values by iterating each element in the collection.
Creates an array of values by iterating each element in the collection.
Creates an array of values by iterating each element in the collection.
Creates an array of values by iterating each element in the collection.
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: number | "desc" | Record<string, any>Sorts documents. See Query#sort.
Sorts documents. See Query#sort.
Returns an array containing all documents.
Returns an array containing all documents.
See Model#findById.
Returns an array containing all documents.
See Model#findById.
Returns an array containing all documents.
See Model#findById.
Returns an array containing all documents.
See Model#findById.
Updates matching documents.
Optional
callback: NodeJSLikeCallback<any>Finds a document by its identifier and update it.
Optional
callback: NodeJSLikeCallback<any>
Model constructor.