[CSHARP-4472] UpdateOneAsync with comment cause MongoCommandException Created: 03/Jan/23  Updated: 03/Jan/23  Resolved: 03/Jan/23

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: p3 p3 Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CSHARP-4471 UpdateOneAsync with comment cause Mon... Closed

 Description   

Summary

await coll.UpdateOneAsync(p => p.Name == "username", update, new UpdateOptions() { Comment = "abc"  });

MongoDB.Driver.MongoCommandException : Command update failed: BSON field 'update.comment' is an unknown field..

Environment

MongoDB.Driver 2.18.0

Dotnet 6

Windows 11 x64

Mongodb Server version 4.2


Generated at Wed Feb 07 21:48:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.