UpdateOne function not working properly
Opened this issue · 0 comments
Trojan9 commented
final selector = {
"path": 'services/${item.serviceId}'
};
final modifier = UpdateOperator.set({'bookOrderId': item.bookOrderId, 'name': item.name});
await CollectionMongo.salons.updateOne(filter: selector, update: modifier);
only the last item("name") in the modifier gets updated on mongo, leaving out 'bookOrderId' . testing from IOS simulator