Skip to content

Commit

Permalink
Update Subtree query type example
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Oct 3, 2018
1 parent 1c4e980 commit 9f38e0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/reference/query_types/location_subtree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Examples
--------------------------------------------------------------------------------

Subtree of the ``calendar`` type Location contains ``event`` type Locations. On the full view for
``calendar`` fetch all pending events from its subtree, sort them by their start date and paginate
them by 10 per page using URL query parameter ``page``:
``calendar`` fetch all pending events from its subtree up to depth of 3, sort them by their start
date and paginate them by 10 per page using URL query parameter ``page``:

.. code-block:: yaml
Expand All @@ -54,6 +54,8 @@ them by 10 per page using URL query parameter ``page``:
page: '@=queryParam("page", 1)'
parameters:
content_type: event
relative_depth:
lte: 3
field:
start_date:
gt: '@=timestamp("today")'
Expand Down

0 comments on commit 9f38e0e

Please sign in to comment.