diff --git a/packages/query-parser/src/stringify.ts b/packages/query-parser/src/stringify.ts index 38f13d27..f7763c02 100644 --- a/packages/query-parser/src/stringify.ts +++ b/packages/query-parser/src/stringify.ts @@ -76,7 +76,7 @@ const BSON_TO_JS_STRING = { } // The `Binary.buffer.toString` type says it doesn't accept // arguments. However it does, and a test will fail without it. - return `BinData(${subType.toString(16)}, '${v.toString('base64')}')`; + return `BinData(${subType.toString(10)}, '${v.toString('base64')}')`; }, DBRef: function (v: DBRef) { if (v.db) {