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