title: yq append data to a yaml file inplace
body: <p>I have a YAML file file.yaml of this sort:</p>
  <pre><code>category: fruits
  some_dummy_key: value
  </code></pre>
  <p>Now i would like to use Mike farah's yq v4(version 4.5.1 to be specific) <a href="https://github.com/mikefarah/yq" rel="nofollow noreferrer">https://github.com/mikefarah/yq</a> to append <code>details</code> key inplace which has a list of name, color that should look like this:</p>
  <pre><code>category: fruits
  somme_dummy_key: value
  details:
  - name: banana
    color: yellow
  - name : apple
    color: red  
  </code></pre>
  <p>In yq version, i know we could do a</p>
  <pre><code>./bin/yq write -i file.yaml details.[0].name banana
  
  ./bin/yq write -i file.yaml details.[0].color yellow
  </code></pre>
  <p>and so on. But how do i do it using yq v4's eval command. I really appreciate any help with this.</p>