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

mongoose dynamic attributes

To get a documents attributes that was added dynamically:

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