mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 03:02:49 +00:00
Added files
This commit is contained in:
9
mongoui/mongoui-master/node_modules/monk/examples/tailable.js
generated
vendored
Normal file
9
mongoui/mongoui-master/node_modules/monk/examples/tailable.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
var monk = require('..');
|
||||
var db = monk('localhost:27017/local');
|
||||
|
||||
var oplog = db.get('oplog.rs');
|
||||
oplog.find({}, { tailable: true, awaitData: true })
|
||||
.each(function(){
|
||||
console.log(arguments);
|
||||
})
|
||||
Reference in New Issue
Block a user