mongoose dynamic attributes
To get a documents attributes that was added dynamically:
var attributes = Object.keys(model.toObject())
Written by charlie
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mongoose
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#