FindAndModify() method via C# driver fails if a field contains an array of complex types

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.9.1
    • Component/s: API
    • None
    • Environment:
      .NET
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Calling FindAndModify() method when one or more of the fields in the Update options contains an array with one or more non-primitive object (e.g. an object with two string properties) cause exception with message:

      .NET type MySubType cannot be mapped to a BsonValue.

      Similar closed bugs (same problem in other methods):
      https://jira.mongodb.org/browse/CSHARP-198
      https://jira.mongodb.org/browse/CSHARP-236

            Assignee:
            Robert Stam (Inactive)
            Reporter:
            DannyVarod [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: