I searched over the internet and found nothing about this making me rethink that "may be we can't insert data into already existing file in Marklogic".But, I want to verify here I know using curl PUT command we can update or create a new document I have created a json using following query
**curl -v -X PUT \
--digest --user rest-writer:x \
-d'{"recipe": {"name" :"Apple pie", "fromScratch":true, "ingredients":"The Universe"}}' \
'http://localhost:8011/LATEST/documents?uri=/example/recipe.json'**
After creating this, i wanted to add another recipe such as below in the same file /example/recipe.json
"name" :"Chocolate Cake", "fromScratch":yes, "ingredients":"Coca"
How can i achieve this using curl in Marklogic?