Couchbase Eventing Function not working

#1

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.

#2

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