GODRIVER-3746Backlog

Add option to infer BSON unmarshal type based on top-level input type

h2. Context Starting with Go Driver v2, the BSON library always unmarshals to {{bson.D}} if there is no Go type information provided, including top-level documents and nested documents (GODRIVER-2819). While that solves the problems introduced by the inherently buggy "ancestor" logic (see GODRIVER-2407), it can also silently change the decoded type of nested documents when migrating from v1 to v2 (e.g. GODRIVER-3689, GODRIVER-3576). While users can configure a {{mongo.Client}} or {{bson.Decod

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
BSON
Labels
Tags and classification

No labels assigned.