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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.1
    • API
    • None
    • .NET
    • Fully Compatible

    Description

      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

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            DannyVarod DannyVarod [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: