problem with Collection.multiUpdateObject
Hi , I am writing a server script in which I need to use Collection.multiUpdateObject. I have been unable to get it to work successfully, I keep running in to the following error:
Script scoring_script: Error: argument type mismatch ( @ 37 : 18 ) - throw e;
The call I am using is below:
result.answersquery = Collection.multiUpdateObject(db_id, "answers", ms_answer_params, {$mul:{score: 2.5}});
I have used a Collection.query statement successfully as below:
result.answersquery = Collection.query(db_id, "answers", ms_answer_params);
since the db_id, "answers", and ms_answer_params are common between the 2 statements and the query statement works while the multiUpdateObject does not I am left to assume the problem is with the JSON operation parameter of "{$mul:{score: 2.5}}"
I have fully read the doc at http://devcenter.appery.io/documentat... and the mongoDB doc for the multiply operation at: http://docs.mongodb.org/manual/refere...
As far as I can tell I am using a valid JSON operation parameter. What am I doing wrong?