The other day I saw a comment on the Web somewhere telling one how to access the list of values defined for an Enum field in a Mongoose.js Schema. Sadly, I didn’t commit that tidbit or its URL to memory and now I need it!
Does anyone know how to do this?
Thanks in advance!
Is this what you’re looking for?
Source: https://gist.github.com/953059