var mongoose = require('./index');
PersonSchema = new mongoose.Schema({
name: {type: String, required: true},
gender: {type: String, enum: ['Male', 'Female', 'Others']}
});
var PersonModel = mongoose.model('Person', PersonSchema);
console.log(PersonModel.schema.path('gender').enumValues);
// ['Male', 'Female', 'Others']