1.1.6 • Published 3 years ago

mongobine v1.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

MongoBine

Mongobine is a simple wrapper around javascript mongodb driver. It offers basic CRUD operations

Installation

npm install mongobine

How to use

var mongobine = require('mongobine');

// create a new mongo instance passing your connection details
var mongo = new mongobine({collection: 'users', url: 'mongodb://localhost:27017', document: 'binebox'});

// Allows you to basic simple CRUD operations for mongodb

//create
mongo.insert({email: "myemail@email.com"});

//retrieve
mongo.find({email: "myemail@email.com"});

//update
mongo.update({email : "myemail@email.com"}, {code: 23}).then(res => {
    console.log('got the update response', res);
});

//delete
mongo.delete({email: "myemail@email.com"});
1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago