Abstract
Abstract
_modelAbstract
_schemaIterates over all documents.
Returns the number of elements.
Number
Remove all documents.
Optional
callback: NodeJSLikeCallback<any>Replace all documents.
Optional
callback: NodeJSLikeCallback<any>Sorts documents.
Example:
query.sort('date', -1);
query.sort({date: -1, title: 1});
query.sort('-date title');
If the order
equals to -1
, desc
or descending
, the data will be
returned in reversed order.
Optional
order: string | number | objectUpdate all documents.
Optional
callback: NodeJSLikeCallback<any>
Query constructor.