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

mongoose dynamic attributes

To get a documents attributes that was added dynamically:

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