Hi, I cannot find anything related on document. I just simply want to modify metadata (or extended attributes) and add new field for tracking if eventing OnUpdate function worked for source document before. Couchbase version 7.
Added picture, want to modify this area with eventing, not from any sdk, application etc.
Example(It won’t work):
function OnUpdate(doc, meta) {
var query = {"id":meta.id};
var result = couchbase.get(mockProduct, query);
result_meta = result.meta
result_meta.xattrs.customfield = "some-custom-field"
couchbase.upsert(mockProduct, result_meta, result.doc)
}
like this. Is it possible?