Serialization Error When Adding Item to Nested Sequence via Path Expression

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.7.1
    • Component/s: LINQ, LINQ3
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      Serializer resolution in MongoDB.Driver 3.7.1 fails when using AddToSet to target a dictionary‑based nested collection path. The driver now requires serializers implementing IBsonArraySerializer for paths like "Buckets.<key>", whereas earlier versions (3.6.x) accepted IEnumerable<T> without issue.

      How to Reproduce

      Example project

            Assignee:
            Damien Guard
            Reporter:
            Janis Zinn
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: