This operator splits all matches into separate documents
Running
yq --null-input 'split_doc'
will output
Given a sample.yml file of:
- a: cat - b: dog
then
yq '.[] | split_doc' sample.yml
a: cat --- b: dog