Update api-model.md
Correct 'where' clause in findOne() method.
This commit is contained in:
parent
7332b3deb9
commit
536d377a97
|
@ -257,7 +257,7 @@ User.findById(23, function(err, user) {
|
||||||
Find a single instance that matches the given where expression.
|
Find a single instance that matches the given where expression.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
User.findOne({id: 23}, function(err, user) {
|
User.findOne({where: {id: 23}}, function(err, user) {
|
||||||
console.info(user.id); // 23
|
console.info(user.id); // 23
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue