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