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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.11.0
    • Component/s: API
    • None
    • Environment:
      mongo 4.0.12, c# driver latest, net core 3.1

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

      raise with error

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

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

              Created:
              Updated:
              Resolved: