New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bridge-mongo

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridge-mongo

A mongodb ORM on top of mongoose that match perfectly with the Bridge framework

  • 1.0.10
  • npm
  • Socket score

Version published
Weekly downloads
51
decreased by-20.31%
Maintainers
1
Weekly downloads
 
Created
Source

Bridge-Mongo

A fully typed mongodb ORM, based on mongoose. The project is under active development.

What is Bridge-Mongo?

Bridge-Mongo is meant to be a type-safe ORM built on top of Mongoose. The main focus is to provide a synthax as close as possible to mongoose, while providing full type-safety and auto-completion throughout all operations.

Development

To follow the development or contribute, join the Discord server.

  • Models
  • CRUD
  • Populate
  • Aggregate

Contributing

If you want any guidance whatsoever with the contribution, don't hesitate to reach out on Discord!

Installation

You can use your favorite package manager to install Bridge-Mongo.

npm i bridge-mongo

Example

import { isError, Schema, mongoose, createDB } from "bridge-mongo"

const user = new Schema({
  name: { type: String, required: true },
  email: { type: String, required: true },
  age: Number,
  additionnalInformation: {
    likeAnimals: Boolean
  }
}, {
  timestamps: true
})

const DB = createDB({
  user
})

async () => {
  const newUser = await DB.user.create({
    email: "dave@bridge.codes",
    name: "Dave"
  })
}

Keywords

FAQs

Package last updated on 16 Feb 2023

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