-
Type:
Investigation
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Use Case
As a... consumer of the BSON package
I want... _bsontype to be available under a symbol property
So that... there are no conflicts with user-provided _bsontype methods
User Experience
- value[bsonType] should be the same as value._bsontype for BSONValue subclasses, but should not be defined for deserialized objects with a _bsontype property
Dependencies
- This simplifies code which relies on detecting arbitrary BSON types in downstream dependencies (DevTools, Atlas Streams Processing)
Risks/Unknowns
- What could go wrong while implementing this change? (e.g., performance, inadvertent behavioral changes in adjacent functionality, existing tech debt, etc)
- Is there an opportunity for better cross-driver alignment or testing in this area?
- Is there an opportunity to improve existing documentation on this subject?
Acceptance Criteria
Implementation Requirements
- functional reqs, potential snafus to avoid, performance targets, etc
Testing Requirements
- unit test, spec test sync, etc
Documentation Requirements
- DOCSP ticket, API docs, etc
Follow Up Requirements
- additional tickets to file, required releases, etc
- if node behavior differs/will differ from other drivers, confirm with dbx devs what standard to aim for and what plan, if any, exists to reconcile the diverging behavior moving forward
- depends on
-
NODE-7255 Add Symbol alias for `_bsontype`
-
- Closed
-
- is cloned by
-
MONGOSH-3170 Investigate changes in NODE-7255: Add Symbol alias for `_bsontype`
-
- Closed
-