I am trying to update some rows based on a criteria, where the first 4 chars change.
Here is the code:
precode
phone = "+440654332123"
phone = phone.substr(4,phone.length);
Collection.multiUpdateObject("55be4ab5dbe", "messages", JSON.stringify({
'message_phone': {"$in": phone}
}), null, {
$set: {
'message_status': 'C'
}
});
/code/pre
It is throwing an error in the trace, but not saying where. Can you not use $in, in this way ?
This is pretty urgent, if someone can back to me.