Skip to content
Browse files

readme

  • Loading branch information...
1 parent 8943028 commit 041fd1caf1ffed0c70d8996c6adcf01667a446ca @rpoole rpoole committed
Showing with 3 additions and 6 deletions.
  1. +3 −6 README.md
View
9 README.md
@@ -596,15 +596,12 @@ clauses - where, orderBy, etc. Trying to chain a method that returns results
__Arguments__
* clauseName - The name of the clause to be attached to the model
- * clauses - The object describing the clauses. Follows a name: arguments
- structure.
+ * clauses - The function that describes the clause composition using a query.
__Example__
```javascript
-Person.defineClause('clauseName', {
- where: 'id > 5',
- orderBy: 'id',
- limit: 5,
+Person.defineClause('clauseName', function(query) {
+ return query.where('id < 5').orderBy('id').limit(5);
});
Person.clauseName().all(connection, function(err, people) {

0 comments on commit 041fd1c

Please sign in to comment.
Something went wrong with that request. Please try again.