I am new to Mongo & Ws02 DSS. Below is the update operation I have written to update the existing document in the Mcongo's llection named "inventory".
<query id="mongoUpdate" useConfig="localMongo1">
<expression>inventory.update({"itemId":"3"},{"currentStock" :"2"})</expression>
<param name="itemId" sqlType="STRING"/>
</query>
While all the simple operations works well, but I am getting the below nested exception for update :
java.lang.IllegalArgumentException: Too many parameters passed to query: {"currentStock" :"2"}
For simplicity, I have hard corded without using the param I have created, but still the update doesn't work. Can someone please help?