Details
-
Technical task
-
Resolution: Fixed
-
Major
-
None
-
3.1.x
-
None
Description
Context:
Example 1
Example 1 doesn’t include valid javascript, I’d change this to:
function (doc, oldDoc, meta) {
channel("collectionname");
}
And say that collection name is the name of the collection as defined in scope - this doesn’t include bucket or scope name. This is not the default sync function if collections are enabled. That’s actually, and maybe work :
function (doc, oldDoc, meta) {
channel(doc.channels);
}
Example 2Example 2 is confusing because this was the old sync function and still used if you aren’t using collections. I’d change this to be something totally different like:
function (doc, oldDoc, meta) {
channel("channel1");
}
Slack chat: https://couchbase.slack.com/archives/C058D6P4BK7/p1685958978983779