mongoshell

1.0.0 • Public • Published

mongoshell

v1.0.0 ( last update: 10 june 2017 )

Set of functions for easy work with mongojs.

Install

npm i mongoshell --save

Node.js

var mongoshell = require("mongoshell");

Documentation

Add new document

mongoshell.doc.add({
  ajax: ajax,
  collection: "users",
  json: {
    username: "Li",
    email: "returninfinity8@gmail.com"
  },
  callback: (err) => {
    if (err) {
      ajax.error();
      return;
    }
    ajax.success();
  }
});

New documentation coming soon ...

//U mad?

/mongoshell/

    Package Sidebar

    Install

    npm i mongoshell

    Weekly Downloads

    8

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • lidebug