I am using mule's MongoDB connector to update a document. The element that I am trying to update in this document is a object as shown below, its part of the full document i need just update two field by id.
{ "_id" : { "$oid": "61aa5bba4b5db6001c7aa333" }, "boQuantity" : 1, "ipQuantity": 1 }
Here is the flow doing the update
<mongo:update-documents doc:name="Update documents" doc:id="01d91a66-6b4f-464f-bac8-47fba99103de" config-ref="MongoDB" collectionName="test">
<mongo:content-to-update ><![CDATA[#[{ "_id" : { "\$oid": "61aa5bba4b5db6001c7aa333" }, "boQuantity" : 1, "ipQuantity": 1 }]]]></mongo:content-to-update>
</mongo:update-documents>
when i debug the connector this show a error like wrong request:
"org.bson.json.JsonParseException: Invalid JSON input. Position: 1. Character: '�'."
I try to put the same json in query or content-to-update to i showed and nothing, maybe i'm use this component bad.
Any suggestions re: how to resolve this issue?