[GODRIVER-529] Value.Interface() returns the .String() result for EmbeddedDocument and Array Created: 20/Aug/18  Updated: 28/Oct/23  Resolved: 24/Oct/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 0.0.11
Fix Version/s: 0.0.17

Type: Bug Priority: Major - P3
Reporter: Ryan Hullah Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-548 Value.Interface() should return the u... Closed

 Description   

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).



 Comments   
Comment by Githook User [ 24/Oct/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@10gen.com'}

Message: return underlying type for a document for value.Interface()

GODRIVER-548
GODRIVER-529
Change-Id: Ia4364ca7895fa8f15a627ab398db15ed10cb2296
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/cbffa77515ae75104a18fd0d56999eea19767907

Generated at Thu Feb 08 08:34:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.