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

is.valid.mongo

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is.valid.mongo

extends is.valid lib and add validation rules that are specific to mongo db objects.

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-87.69%
Maintainers
1
Weekly downloads
 
Created
Source

Is.Valid.Mongo

Build Status

Extend is.valid library to validate objects that are saved to Mongo DB Server

How to use

Install from npm

npm install is.valid.mongo --save

Refer to is.valid documentation to see how to use the lib and a list of supported validation methods

New Validation functions

exists[collection_name.field]: validates that there is at least one document in a certain collection that has the value supplied in the field selected.

unique[collection_name.field]: validates that the documents in a certain collection have never seen the value supplied in the field selected.

uniqueExcept[collection_name.field.another_field.another_value]: validates that the documents in a certain collection have never seen the value supplied in the field selected excluding documents that match the condition (another_field = another_value).

Keywords

FAQs

Package last updated on 16 Mar 2016

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