[GODRIVER-548] Value.Interface() should return the underlying type for a Document Created: 10/Sep/18 Updated: 28/Oct/23 Resolved: 24/Oct/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 0.0.17 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Isabella Siu (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | beta, neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The Value.Interface() method currently always returns a Reader for a document and an Array for an array. Change this to inspect the underlying representation (whether the d field is nil) and return either a *bson.Document or a bson.Reader. |
| 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()
|