We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c542a commit 3bb7c70Copy full SHA for 3bb7c70
src/utils.ts
@@ -1300,7 +1300,7 @@ export function getMongoDBClientEncryption(): {
1300
* - `-1 = oid1 is less than oid2`
1301
* - `+0 = oid1 is equal oid2`
1302
*/
1303
-export function compareObjectId(oid1?: ObjectId, oid2?: ObjectId): 0 | 1 | -1 {
+export function compareObjectId(oid1?: ObjectId | null, oid2?: ObjectId | null): 0 | 1 | -1 {
1304
if (oid1 == null && oid2 == null) {
1305
return 0;
1306
}
0 commit comments