[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: |
|
||||||||
| 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()
|