Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Yaml Query

No security coverage Under active development 2 sites

This module allows you to define database queries in a YAML format, which are then converted into executable EntityQueries for Drupal. You can specify entity types, sorting, conditions, and even link queries together as sub-queries.

This project provides a Service that can be used to parse YAML into an executable EntityQuery.

Example Yaml:

---
main:
  entity_type: node
  range:
    start: 0
    length: 10
  sort:
    field: nid
  conditions:
      - field: status
        value: published
        operator: "!="
      - field: nid
        value: condition_1

condition_1:
  entity_type: node
  range:
    start: 0
    length: 10
  sort:
    field: nid
  conditions:
      - field: nid
        value: 1
        operator: "="
...

Running this through the Yaml Parser will return an EntityQuery which can be executed. Notice Queries can be linked to conditions as sub-queries.

Ask your assistant about Yaml Query

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jun 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0-alpha1 Pre-release 8–10 Jun 23, 2023
1.0.x-dev Dev 8–10 Jun 23, 2023