Browse Source

mongo tail

master
zeus 4 years ago
parent
commit
231064a5b4
  1. 7
      swarmlab-app/src/run/app.js

7
swarmlab-app/src/run/app.js

@ -386,10 +386,11 @@ function onCollection(err, collection) {
});
var cursor1 = collection.find({},options);
console.log(JSON.stringify(cursor1))
console.log(JSON.stringify(cursor1.value))
setInterval(function () {
var cursor2 = collection.find({},options);
console.log(JSON.stringify(cursor1))
var cursor2 = collection.find({},options);
console.log(JSON.stringify(cursor2.value))
console.log('itemsProcessed', itemsProcessed);
}, 1000);
}

Loading…
Cancel
Save