Open
Description
Describe the bug
When overwriting an object's value with undefined, it will leave the old value intact
❯ yq -n '.foo = "abc" | .foo = .bar'
Actual behavior
foo: abc
Expected behavior
foo: null
Additional context
❯ jq -n '.foo = "abc" | .foo = .bar'
{
"foo": null
}
❯ yq -n '.foo = "abc" | .foo = null'
foo: null