A MongoDB plugin for dat for realtime data changes
##Usage
Create a dat.json
with the hooks.listen
plugin identified and a mongoOplogUrl
defined.
{
"name": "dat-mongo",
"hooks": {
"listen": "dat-mongo"
},
"mongoOplogUrl": "127.0.0.1:27017/local"
}
Now dat listen
.
##Caveats
This requires your Mongo instance to be running as a replica set so that operations are written to the oplog.
Made with ⚡️ by @taterbase