I’m using the MongoDatabase.getCollection(collectionName).updateMany(…) with a command with $in. For this case return:
Hi Flavio,
It is likely that you may have skipped specifying field before $in. For example, missing specifying field foo from the below example :
db.collection.update( { "foo": { "$in": ["bar", "baz"] } },
{ "$set": { "x":true } });
If you have further question, could you provide:
updateMany, i.e. that contains the update operation or commandRegards,
Wan.