From 2fc52963ce4da777b0db25aed00d4998ae285e02 Mon Sep 17 00:00:00 2001 From: pmykhailov Date: Sun, 26 Nov 2023 13:43:44 +0200 Subject: [PATCH] fix(NODE-5765)!: change type for countDocuments --- src/collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection.ts b/src/collection.ts index 4346620a192..d12bbe31eea 100644 --- a/src/collection.ts +++ b/src/collection.ts @@ -740,7 +740,7 @@ export class Collection { * @see https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere */ async countDocuments( - filter: Document = {}, + filter: Filter = {}, options: CountDocumentsOptions = {} ): Promise { return executeOperation(