eventing
Installation
SKILL.md
Couchbase Eventing
JavaScript functions that trigger on document mutations — create, update, delete, and expiry.
Template: templates/eventing-function.js — copy this skeleton as a starting point for new Eventing Functions.
Function Structure
function OnUpdate(doc, meta) {
// doc — document body; meta.id, meta.cas, meta.expiration
if (doc.type !== "order") return;
dst[meta.id] = Object.assign({}, doc, { processed: true });
}