From 4a94b6ff06cfc49e8cb21544b7c270c6d2dda669 Mon Sep 17 00:00:00 2001 From: 1602 Date: Tue, 31 Jan 2012 11:51:55 +0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 57ada9db..f87096e2 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Post.create(cb); // all posts Post.all(cb) // 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 user.posts(cb) // same as new Post({userId: user.id}); @@ -80,7 +80,7 @@ user.posts.create(cb) // find instance by id User.find(1, cb) // count instances -User.count(cb) +User.count([conditions, ]cb) // destroy instance user.destroy(cb); // destroy all instances