Nonvoluntary Professional Mangling
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

dat-mongo

1.1.0 • Public • Published

build status

dat-mongo

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

Install

npm i dat-mongo

DownloadsWeekly Downloads

3

Version

1.1.0

License

ISC

Last publish

Collaborators

  • avatar