-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Currently, when calling ToString() on a cursor, if it includes a Guid, the resulting output looks something like:
CSUUID("f7402520-3018-4b8e-9414-4d93a244f9b0")
We should add a shell friendly version of this output. At its most basic it is as simple as converting to a byte array then to a base64 encoded string.
var str = $"new BinData(3, \"{Convert.ToBase64String(guid.ToByteArray())}\")";
- depends on
-
SERVER-3153 The mongo shell needs better support for displaying and entering GUIDs/UUIDs
- Closed