npm

Need private packages and team management tools?Check out npm Orgs. »

monglow

3.0.2 • Public • Published

monglow

A simple MongoDB wrapper that doesn't get in your way.

  • Easy & flexible database setup
  • Command buffering (query without waiting for connection)
  • Auto-casting of _id in queries
  • Recording of createdAt & updatedAt
  • Promises built-in
  • Direct access to native MongoDB driver; and
  • Access to monglow utils
npm i --save monglow

Usage

import { Monglow, Model } from 'monglow';
 
const uri = 'localhost/test';
const monglow = new Monglow(uri);
 
const User = new Model('users');
 
monglow.connect();
 
monglow.activate(User);
 
User.find().then(users => {
  console.log(users);
});
 
monglow.disconnect();

Coming soon

  • Relationships

install

npm i monglow

Downloadsweekly downloads

179

version

3.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability