From ee6c314131b21cec4855ba5d3315b448b3cf1ae0 Mon Sep 17 00:00:00 2001 From: pmykhailov Date: Sun, 26 Nov 2023 13:43:44 +0200 Subject: [PATCH] fix 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(