Skip to content

Advanced Queries ​

Learn advanced techniques for complex YAML manipulations.

Nested Field Access ​

Condition:

metadata.author = "John"

Action:

SET metadata.reviewed true

Array Operations ​

Find and Replace ​

Condition:

tags contains "old-project"

Action:

FOR tags WHERE $ = "old-project" REMOVE, FOR tags APPEND "new-project"

Conditional Array Modifications ​

Condition:

priority > 5 AND NOT tags contains "urgent"

Action:

FOR tags APPEND "urgent"

Date Operations ​

Condition:

created_date < "2024-01-01"

Action:

FOR tags APPEND "archived", SET archived_date "{{today}}"

Complex Conditionals ​

Condition:

(status = "active" OR status = "pending") AND HAS deadline AND deadline < "{{today}}"

Action:

SET status "overdue", FOR tags APPEND "urgent"

Multi-Step Transformations ​

Execute multiple rules in sequence for complex transformations.

See Also ​

Released under the MIT License.