I do not set the variable key to update, my code ...
mongoose.model('members', Schema).update({ id: '0' }, {$push: {'this_key': 'value'}} , [], function (err, data){});
if i use
var this_key = 'test';
but this_key is not 'test' it 'this_key' in
mongoose.model('members', Schema).update({ id: '0' }, {$push: {this_key: 'value'}} , [], function (err, data){});
I need to get some ext POST [] value to set this_key variable,
How to set a variable key in mongoose, Node.js?
source share