How do you merge arrays of objects together matching on a key #798
Unanswered
richard24se
asked this question in
Q&A
Replies: 1 comment 4 replies
-
That's how merge with the deep flag is supposed to work. You have two arrays, each containing objects - it merges the objects deeply in the matching indices. Note: there is no way for |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
A clear and concise description of what the bug is.
Note that any how to questions should be posted in the discussion board and not raised as an issue.
Version of yq: 4.7.1
Operating system: linux
Installed via: binary
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
s1.yml:
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
Beta Was this translation helpful? Give feedback.
All reactions