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

Value.Interface() returns the .String() result for EmbeddedDocument and Array

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.17
    • Affects Version/s: 0.0.11
    • Component/s: BSON

      When you have a *Value, and you want to get the value irregardless of the type, you would call *Value.Interface(). But when the value is an EmbeddedDocument or Array, it's returning the .String() result which makes the resulting interface unusable (since it's always a string and not the actual type).

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            ryan.hullah@bluemedora.com Ryan Hullah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: