I have a mongo object and wish to access it via mongoose for my web app. The schema I\'ve defined has an Object storing user ids and a
mongo
mongoose
Object
You may try with Schema Type Mixed like this way
var user = new Schema({ info: [Schema.Types.Mixed] }); user.info = { any: { thing: 'i want' } }; user.markModified('info');
You can read more about it here