Skip to content

Commit

Permalink
Document hasAncestor. Fixes #18.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Jul 14, 2014
1 parent 6b1e033 commit 0170735
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ var q = ds.createQuery('Company')
.filter('size <', 400);
~~~~

In order to filter by ancestors, use `hasAncestor` helper.

~~~ js
var q = ds.createQuery('Child').hasAncestor(['Parent', 123]);
~~~

##### Sorting

You can sort the results by a property name ascendingly or descendingly.
Expand Down

0 comments on commit 0170735

Please sign in to comment.