We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3cdb05 commit 5d7e241Copy full SHA for 5d7e241
snippets/uuidhelpers/index.js
@@ -138,8 +138,10 @@ BinData.prototype.toHexUUID = function () {
138
}
139
140
// for compatibility with the new mongosh shell
141
-if (BinData.prototype.base64 === undefined && BinData.prototype.subtype === undefined) {
+if (BinData.prototype.base64 === undefined) {
142
BinData.prototype.base64 = function() { return this.buffer.base64Slice(); };
143
+}
144
+if (BinData.prototype.subtype === undefined) {
145
BinData.prototype.subtype = function() { return this.sub_type; };
146
147
0 commit comments