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

moltyjs

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moltyjs - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "moltyjs",
"version": "0.0.5",
"version": "0.0.6",
"description": "A tiny ODM for MongoDB with multy tenancy support.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -45,2 +45,4 @@ # What is moltyjs?

To create a new Schema use the "Schema()" constructor passing the schema and the options:
```javascript

@@ -79,4 +81,25 @@ const { connect, Schema } = require('moltys');

The schema field properties alowed are:
_type_: Mandatory [String, Number, Boolean, Buffer, Date, Array, Object]
_required_: Optional {Boolean}
_unique_: Optional {Boolean}
_default_: Optional
_match_: Optional
_enum_: Optional
_min_: Optional
_max_: Optional
_maxlength_: Optional
_validate_: Optional
And the schema options allowed are:
_timestamps_: Optional
_inheritOptions_: Optional
--_discriminatorKey_: Required once "_inheritOptions_" is set
--_merge_: Optional ['methods', 'preHooks', 'postHooks']
# TODO
* Improove documentation
* Populate

@@ -83,0 +106,0 @@ * find()

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