Add nested target path updates

This commit is contained in:
2026-01-18 13:35:00 +00:00
parent 9ea7c15f5d
commit 67f2c26f10
5 changed files with 84 additions and 29 deletions

View File

@@ -96,6 +96,20 @@ Update a data source with a new value.
}
```
**Target-path convention:**
To update nested values inside a data source, use a dotted `target` where the prefix is the data source ID and the remainder is the nested path:
```json
{
"id": "set-city",
"type": "set-value",
"target": "profile.address.city",
"expression": "event.target.value"
}
```
This dotted `target` format works with `set-value`, `update`, `toggle-value`, `increment`, and `decrement`.
### create
Add a new item to an array data source.