0.1.6 • Published 7 years ago

db-plumbing-mongo v0.1.6

Weekly downloads
16
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

Software Plumbers DB Plumbing (Mongo)

Mongo database wrapper compatible with db-plumbing-map and db-plumbing-rest.

Tl;DR

let store = new Client("mongodb://mongo1.net:27017/test").getStore("mycollection");

store.update({ uid: 1, a: "hello", b: "sailor"});

value=store.find(1);

and value should be {uid:1, a:"hello", b:"sailor"}

The store supports remove, find by criteria, and remove by criteria operations. It also supports a bulked update operation based on the typed-patch library.

This implementation should be interoperable with db-plumbing-map or db-plumbing-rest.

For the latest API documentation see The Software Plumbers Site