Last Updated: February 25, 2016
·
1.097K
· klclee

mongoose dynamic attributes

To get a documents attributes that was added dynamically:

var attributes = Object.keys(model.toObject())