I\'m using Mongoose.js to create models with schemas.
I have a list of models (many) and at times I\'d like to get the attributes/keys that make up a particular mo
Just insert the field name you like to get.
let fieldName = 'birthday' console.log(mySchema.schema.paths[fieldName].instance);