rabbah commented on issue #109: Specify doc id as parameter outside of doc body 
when creating doc via write action
URL: 
https://github.com/apache/incubator-openwhisk-package-cloudant/issues/109#issuecomment-313173337
 
 
   The `write` action provides this feature: it will fetch the document by id, 
extract the revision, and use it to update the document in place. To use this, 
use `-p overwrite true` is using the cli as in:
   
   ```
   wsk action invoke your.cloudant.binding/write -p dbname example -r -p doc 
'{"a":"hi", "_id": "8c22a2fe5b3bbe236da144544ac09920"}' -p overwrite 'true' 
   ```
   
   @jasonpet why is this action called `write` instead of `write-document` to 
be consistent with the other actions in this package/ 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to