Is this what you are looking for?
var mongoose = require('./index') , TempSchema = new mongoose.Schema({ salutation: {type: String, enum: ['Mr.', 'Mrs.', 'Ms.']} }); var Temp = mongoose.model('Temp', TempSchema); console.log(Temp.schema.path('salutation').enumValues); var temp = new Temp(); console.log(temp.schema.path('salutation').enumValues);
Source: https://gist.github.com/953059
source share