Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1466

Overriding the type map entry for embedded document does not work

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      If RegisterTypeMapEntry is used to decode into bson.M instead of bson.D for empty interface, the values still decode as bson.D.

      Also, we should fix empty interface decoding to first check for ancestor information and then for type map entries. This will allow us to remove the warning from the RegisterTypeMapEntry documentation about registering a mapping for bsontype.EmbeddedDocument.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: