Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose-unique-validator

var mongoose = require('mongoose');var uniqueValidator = require('mongoose-unique-validator'); var mySchema = mongoose.Schema(/* put your schema definition here */);mySchema.plugin(uniqueValidator);
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+3 =