Update README.md

This commit is contained in:
1602 2012-01-31 11:51:55 +04:00
parent 4442b42ace
commit 4a94b6ff06
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ Post.create(cb);
// all posts // all posts
Post.all(cb) Post.all(cb)
// all posts by user // all posts by user
Post.all({where: {userId: user.id}}); Post.all({where: {userId: user.id}, order: 'id', limit: 10, skip: 20});
// the same as prev // the same as prev
user.posts(cb) user.posts(cb)
// same as new Post({userId: user.id}); // same as new Post({userId: user.id});
@ -80,7 +80,7 @@ user.posts.create(cb)
// find instance by id // find instance by id
User.find(1, cb) User.find(1, cb)
// count instances // count instances
User.count(cb) User.count([conditions, ]cb)
// destroy instance // destroy instance
user.destroy(cb); user.destroy(cb);
// destroy all instances // destroy all instances