Page 1 of 1

Using $in Server Code Multi Update issue

Posted: Thu Aug 13, 2015 6:14 pm
by Bad Addy

I am trying to update some rows based on a criteria, where the first 4 chars change.

Here is the code:

precode

phone = "+440654332123&quot

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.


Using $in Server Code Multi Update issue

Posted: Fri Aug 14, 2015 3:21 pm
by Bad Addy

21 Hours and still waiting support, not giving me confidence in returning to Appery!


Using $in Server Code Multi Update issue

Posted: Sat Aug 15, 2015 3:12 pm
by Serhii Kulibaba

Hello,

It is allowed to use $in parameter only for arrays variables, but you use it for the string.