diff --git a/operators/create-collect-into-object.md b/operators/create-collect-into-object.md index b90866c9..12802ba5 100644 --- a/operators/create-collect-into-object.md +++ b/operators/create-collect-into-object.md @@ -86,3 +86,16 @@ will output wrap: frog ``` +## Creating yaml from scratch with multiple objects +Running +```bash +yq --null-input '(.a.b = "foo") | (.d.e = "bar")' +``` +will output +```yaml +a: + b: foo +d: + e: bar +``` +