updateOne method
Future<Map<String, dynamic> >
updateOne(
- Map<
String, dynamic> filter, - Map<
String, dynamic> update, { - UpdateOptions? options,
- Transaction? transaction,
Implementation
Future<Map<String, dynamic>> updateOne(
Map<String, dynamic> filter,
Map<String, dynamic> update, {
UpdateOptions? options,
Transaction? transaction,
}) async {
final bson = BSON();
final filterBytes = bson.serialize(filter);
final updateBytes = bson.serialize(update);
final ret = await p.updateOne(
collectionId,
filterBytes,
updateBytes,
options: options,
requestContext: transaction?.requestContext,
);
return ret;
}