Skip to content

Commit 2fc5296

Browse files
committed
fix(NODE-5765)!: change type for countDocuments
1 parent 16025da commit 2fc5296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ export class Collection<TSchema extends Document = Document> {
740740
* @see https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere
741741
*/
742742
async countDocuments(
743-
filter: Document = {},
743+
filter: Filter<TSchema> = {},
744744
options: CountDocumentsOptions = {}
745745
): Promise<number> {
746746
return executeOperation(

0 commit comments

Comments
 (0)