From 01ae85dd43489e006b5b65d55feabdf723cdc9da Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 24 Nov 2020 19:02:39 +0200 Subject: [PATCH] mongo tail --- swarmlab-app/src/run/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index f9a693d..a47746e 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -385,7 +385,11 @@ function onCollection(err, collection) { itemsProcessed++; }); + var cursor1 = collection.find({},options); + console.log(JSON.stringify(cursor1)) setInterval(function () { + var cursor2 = collection.find({},options); + console.log(JSON.stringify(cursor1)) console.log('itemsProcessed', itemsProcessed); }, 1000); }