Skip to content

Commit

Permalink
fix(NODE-5765)!: change type for countDocuments
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelm-sup committed Nov 28, 2023
1 parent 16025da commit 2fc5296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ export class Collection<TSchema extends Document = Document> {
* @see https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere
*/
async countDocuments(
filter: Document = {},
filter: Filter<TSchema> = {},
options: CountDocumentsOptions = {}
): Promise<number> {
return executeOperation(
Expand Down

0 comments on commit 2fc5296

Please sign in to comment.