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

/dat-mongo/

    Package Sidebar

    Install

    npm i dat-mongo

    Weekly Downloads

    11

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • taterbase