Skip to content

yamlSet

yamlSet(yaml, path, value) → value · YAML

Return a new YAML structure with the value at the given path replaced. See Chapter 26.

  • yaml (required): YAML UDM value

  • path (required): dot-separated path string

  • value (required): value to set at path

utlx
yamlSet($input, "database.port", 5433)   // returns new structure with port changed

Released under AGPL-3.0.