kfiross / flutter_mongodb_realm

Unofficial Flutter plugin for using MongoDB Realm services on Android, iOS and web.
Apache License 2.0
41 stars 17 forks source link

UpdateOne function not working properly #52

Open Trojan9 opened 11 months ago

Trojan9 commented 11 months ago

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