-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Programmability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Getting bin data from a BSON object require multiple steps involving extracting the size as an int and getting a buffer.
We should expose a safe api that returns a view over the bin data as a StringData or a span. It should also let users get the type of the bin data through this object.
We should also consider exposing a way to cast that bin data and safely inspect the data from it.