Fix destroyAll reference
This commit is contained in:
parent
a47317de0d
commit
20e28e07e4
|
@ -310,10 +310,18 @@ User.find({
|
|||
|
||||
**Note:** See the specific connector's [docs](#connectors) for more info.
|
||||
|
||||
### Model.destroyAll(callback)
|
||||
### Model.destroyAll([where], callback)
|
||||
|
||||
Delete all Model instances from data source. **Note:** destroyAll method does not perform destroy hooks.
|
||||
|
||||
```js
|
||||
Product.destroyAll({price: {gt: 99}}, function(err) {
|
||||
// removed matching products
|
||||
});
|
||||
```
|
||||
|
||||
> **NOTE:* `where` is optional and a where object... do NOT pass a filter object
|
||||
|
||||
### Model.findById(id, callback)
|
||||
|
||||
Find instance by id.
|
||||
|
|
Loading…
Reference in New Issue