-
Type: Improvement
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
The bsoncore.Document API is the basis for the bson.Raw and bson.RawValue APIs, but they are disjoint in some cases, with bsoncore.Document being a more powerful and complete API. Eventually we want to expose more important functionality from the bsoncore.Document API via the bson.Raw and bson.RawValue APIs, but there are cases where bson.Raw/bson.RawValue aren't perfect subsets of the bsoncore.Document API, making merging them more difficult.
Update the bson.Raw/bson.RawValue APIs to make it possible to incrementally merge the APIs after the Go Driver 2.0 release.
Definition of done:
- List API changes required to make this possible.
- Deprecate existing APIs in the v1.x driver that need to be removed in the v2.0 driver to make this possible. Note that deprecated APIs will be removed with
GODRIVER-2617 - Create tickets to track migration of the bsoncore.Document API to bson.Raw/bson.RawValue
- is depended on by
-
GODRIVER-2617 Remove or un-export all currently deprecated code in Go Driver 2.0
- Closed
- related to
-
GODRIVER-2863 Improve BSON RawValue type conversion APIs
- Backlog
-
GODRIVER-1639 Add a "bson.RawArray" type to improve BSON array lookup API
- Closed