[GODRIVER-699] Decoding into a bson.M embeds bson.Ds, not bson.Ms Created: 13/Dec/18  Updated: 28/Oct/23  Resolved: 19/Dec/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 0.2.0

Type: Bug Priority: Major - P3
Reporter: Eric Daniels (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It would be expected that we would stick to one form, ordered or unordered, and even more strictly, stick to the container document type for all embedded documents.



 Comments   
Comment by Githook User [ 19/Dec/18 ]

Author:

{'username': 'skriptble', 'email': 'kris@mongodb.com', 'name': 'Kris Brandow'}

Message: Ensure ancestor information is used when decoding

A new Ancestor field is added to the DecodeContext and is used when
decoding a BSON Embedded Document into an interface{}.

GODRIVER-699

Change-Id: Ie364ff52106e231950b83d3c9a197363d76cf19f
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/53d066093006acdf0f13fe850dd5b22a3e5b72b2

Comment by Kristofer Brandow (Inactive) [ 18/Dec/18 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/437732.

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