Update api-model.md

Correct 'where' clause in findOne() method.
This commit is contained in:
Rand McKinney 2014-03-11 09:21:01 -07:00
parent 7332b3deb9
commit 536d377a97
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ User.findById(23, function(err, user) {
Find a single instance that matches the given where expression.
```js
User.findOne({id: 23}, function(err, user) {
User.findOne({where: {id: 23}}, function(err, user) {
console.info(user.id); // 23
});
```