From 0170735aefdedae1aa6c379934328cc31d5ff487 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Mon, 14 Jul 2014 10:34:49 -0700 Subject: [PATCH] Document hasAncestor. Fixes #18. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index db192110f62..d1051f22482 100644 --- a/README.md +++ b/README.md @@ -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.