Update doc example for findOne()

This commit is contained in:
Ritchie 2013-06-20 17:31:23 -07:00
parent db7a86321b
commit 9be5123d9e
1 changed files with 3 additions and 3 deletions

View File

@ -208,11 +208,11 @@ Find instance by id.
console.info(user.id); // 23
});
##### Model.findOne(filter, callback)
##### Model.findOne(where, callback)
Find a single instance that matches the given filter.
Find a single instance that matches the given where expression.
User.find(23, function(err, user) {
User.findOne({id: 23}, function(err, user) {
console.info(user.id); // 23
});