mongo-coll-watcher
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "mongo-coll-watcher", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "mongodb change watcher using changes streams, having resumable capabilities.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -8,3 +8,7 @@ const Log = require('lil-logger').getLogger(__filename); | ||
} | ||
/** | ||
* Util to receive mongo collection changes, in realtime using mongo `ChangeStream`. | ||
* @param {Array} watchedColls - collection names to be watched for changes | ||
* @param {Function} collListener - Common Listener to receive changes by watcher | ||
*/ | ||
module.exports = async function(watchedColls, collListener) { | ||
@@ -11,0 +15,0 @@ try { |
4475
80