mongodbapi

1.0.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mongodbapi

Weekly Downloads

1

Version

1.0.8

License

ISC

Last publish

Collaborators

  • jorgeromeromoli