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

Cannot insert document with field name have dot like 'a.b'

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.11.0
    • API
    • None
    • mongo 4.0.12, c# driver latest, net core 3.1

    Description

      await collection.InsertOneAsync(raw, new InsertOneOptions \{ BypassDocumentValidation=true });
      

      raise with error

      Unhandled exception. MongoDB.Bson.BsonSerializationException: Element name 'content.basicInfo.unitName' is not valid'
      

      Attachments

        Activity

          People

            james.kovacs@mongodb.com James Kovacs
            1on1y4u1989@gmail.com Page Larry
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: