updateOne method

void updateOne(
  1. UpdateOneStatement updateRequest
)

updateOne updates a single document in the collection that matches the filter. If multiple documents match, updateOne will update the first matching document only.

Implementation

void updateOne(UpdateOneStatement updateRequest) =>
    _setCommand(UpdateOneOperation(collection!, updateRequest));