Skip to content

Commit 0170735

Browse files
committed
Document hasAncestor. Fixes #18.
1 parent 6b1e033 commit 0170735

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ var q = ds.createQuery('Company')
170170
.filter('size <', 400);
171171
~~~~
172172

173+
In order to filter by ancestors, use `hasAncestor` helper.
174+
175+
~~~ js
176+
var q = ds.createQuery('Child').hasAncestor(['Parent', 123]);
177+
~~~
178+
173179
##### Sorting
174180

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

0 commit comments

Comments
 (0)