Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodejs-mongodb-model

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-mongodb-model

A thin Model around MongoDB collections with easy bulk, pagination and lookup operations

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

MongodbModel

A thin Model around MongoDB collections with easy bulk, pagination and lookup operations

Installation

npm install nodejs-mongodb-model

This will also install 'mongodb' as dependency.

Basic Usage

const MongodbModel = require('nodejs-mongodb-model');

async function main() {
  Photos = await MongodbModel.model('photos');
  await Photos.insertOne({ name: 'flower.jpg' });
}

main();

FAQs

Package last updated on 29 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc