[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:
Related
related to GODRIVER-529 Value.Interface() returns the .String... Closed

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

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:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.