You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update works in CLI, however when I run it through monk it fails due to: No array filter found for identifier 'attendee' in path 'attendees.$[attendee].charge.payment_id' :
var mongo = require('mongodb');
var monk = require('monk');
var db = monk(config.get('mongo.uri'));
var col = db.get('col')
col.update({
'entity.id': '5be5e93061d510116506df51',
scheduled_to: {
$lte: new Date("2018-12-20T11:59:09.896Z")
},
attendees: {$exists: true}
},{
$set: {
"attendees.$[attendee].charge.payment_id": 234
}
},{
multi: true,
arrayFilters: [{
'attendee.charge.currency': 'USD',
'attendee.charge.payment_id': {$exists: false}
}]
},function(err){
console.log(err)
})
db version is 3.6.9
monk version is 6.0.6
The text was updated successfully, but these errors were encountered:
This update works in CLI, however when I run it through monk it fails due to:
No array filter found for identifier 'attendee' in path 'attendees.$[attendee].charge.payment_id'
:db version is 3.6.9
monk version is 6.0.6
The text was updated successfully, but these errors were encountered: