Couchbase Eventing Function not working


I wrote a simple couchbase function
function onUpdate{
doc[“Hi”] = “Hello”;
Just trying to add afield in my document on every mutation. But it is not reflecting in the document after deployed function starts running. Please suggest.


Hey vishal00921,
Do you have a mapping for destination bucket “doc”? It will be great if you export your function and share with us.