bson.unmarshall type changed between v1 and v2

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Go Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      We use a generic JSON library for managing nested maps, github.com/Jeffail/gabs/v2.

      This library only supports nested maps values of type any which bson.Unmarshall v1 output. After updating to go-driver v2 bson.Unmarshall now outputs any(go.mongodb.org/mongo-driver/v2/bson.D)

      Definition of done

      Being able to tell bson.Unmarshall to output map values of type any.

      Pitfalls

      There is probably a reason for the change, and I'd be interested to know what it is.

      I tried using the decoder pattern, but it was the same result.

            Assignee:
            Matt Dale
            Reporter:
            Tobias MÃ¥nsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: