bson.unmarshall type changed between v1 and v2

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 🔵 Done
    • Go Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • 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:
            Unassigned
            Reporter:
            Tobias MÃ¥nsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: