0.1.6 • Published 8 years ago

is.valid.mongo v0.1.6

Weekly downloads
32
License
-
Repository
github
Last release
8 years ago

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

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

uniquecollection_name.field: validates that the documents in a certain collection have never seen the value supplied in the field selected.

uniqueExceptcollection_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).

0.1.6

8 years ago

0.1.5

9 years ago

0.1.3

9 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago