1.0.8 • Published 7 years ago

mongodbapi v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

mongodbapi

Mongodbapi is a MongoDB interface designed to create CRUD operations (create, read, update and delete documents).

Prerequisites

Installation

$ npm install mongodbapi

Overview

Managing docs with mongodbapi is very easy, you just need to create a mongo object passing a connection string, and then executing a CRUD operator:

let mongoapi = require('mongodbapi');

const connection = 'mongodb://127.0.0.1:27017/local';
let mongo = new mongoapi(connection);

let command = { collection: 'test' };
mongo.read(command).then( (result) => {

    console.log(result);

}, (err) => {

    console.log(err);

} );

Please click here for complete documentation

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago