Object Queries

The query language is a very basic adatpation of S-expressions. It uses the following format:

filter_by:
  - and:
    - eq:
      - attr: ["name"]
      - "index.yml"
    - contains:
      - attr: ["tags"]
      - "in-menu"

This would translate to:

Any page where the “name” is “index.yml” and its “tags” contains a “in-menu” value.

Supported operators:

- attr: ["name"]  # obj.name
- all:  # all(...)
  -
  -
  -
- any:  # any(...)
  -
  -
  -
- not:
- lt:  # Also le, eq, ne, ge, gt
  - left
  - right
- startswith:
  - value
  - prefix
- contains:
  - value
  - content