Skip to content

Possible to merge arrays using their values as keys? #791

Answered by mikefarah
kyguy asked this question in Q&A

You must be logged in to vote

You should be able to do it - I've recently added an example of merging arrays using matching object keys:

https://mikefarah.gitbook.io/yq/operators/multiply-merge#merge-arrays-of-objects-together-matching-on-a-key

Replies: 1 comment 4 replies

You must be logged in to vote
4 replies
@mikefarah

@kyguy

@mikefarah

@kyguy

Answer selected by kyguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants