Socket
Socket
Sign inDemoInstall

mongosteel

Package Overview
Dependencies
18
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mongosteel

A solid ODM for MongoDB


Version published
Weekly downloads
9
decreased by-60.87%
Maintainers
1
Install size
8.33 MB
Created
Weekly downloads
 

Readme

Source

MongoSteel

MongoSteel is a solid MongoDB object modeling tool, designed to work in a typescript asynchronous environment. MongoSteel does not support callbacks. MongoSteel now supports ESM imports!

npm

Why was this made?

Honestly, I just got frustrated with mongoose due to this issue (though as of now it appears to be a lot better), along with how it mixed everything together. Other options such as mongolass had cool plugin APIs and nice systems, but they didn't work with me very well due to their absence of typescript support.

So, I decided to throw my own hat into the ring, and made this. As of now, it doesn't have much plugin support, but it has a nice strict way of doing things, and is a very small module, with no dependencies, besides the mongoDB driver.

Documentation

For official Documentation go to here

Support

You can get support on github's discussions

Limitations

  1. A schema cannot have a property named 'type' and 'required' (both at once, ie. {type: "string"} is ok, but {type: "string", required: "boolean"} isn't) as those are currently used to identify schema options
  2. No plugins (though there are methods, which aren't fully tested and be slightly broken)
  3. Not all methods are implemented (due to some being superior, case and point: findOneAndDelete > deleteOne), and lack of a need)

Contributions

Pull requests are always welcome :)

If you want to add documentation,

Current contributors

Acknowledgments

Some of the code & explanations present in this repository has been moddeled after mongoose

Keywords

FAQs

Last updated on 08 Nov 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc