ibm bluemix - How to delete 1 of 2 attachements in Cloudant? -


do know how delete 1 of 2 attachements of cloudant document?

here's how doc looks enter image description here

whilst have 2 attachments have 1 document stored in cloudant. delete attachment need update cloudant doc rather delete it.

you'll need write code in application remove attachment json send put request cloudant db including id and latest _rev value. (api reference)

alternatively store 2 documents in database; 1 each attachment. you'd need store user_id , other metadata in each. allow delete each document individually.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -