Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
Description
The Binary data section of the Extended JSON page lists BinData(t, "base64str") as the mongo Shell Mode representation of binary BSON data.
However, the mongo Shell will also accept HexData(t, "hexstr") as a way of creating binary data from a hex-encoded string, rather than from a base64-encoded string.
Therefore it would be useful to add this as an acceptable representation for shell mode (to help avoid unnecessary conversions to/from base64).