Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4471

UpdateOneAsync with comment cause MongoCommandException

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 2.18.0
    • Component/s: CRUD
    • Labels:

      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

            Assignee:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Reporter:
            gw2008@gmail.com p3 p3
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: