diff --git a/src/collection.ts b/src/collection.ts index 4346620a19..d12bbe31ee 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(