Skip to content

Commit

Permalink
fix(NODE-5765): change type for countDocuments (#3932)
Browse files Browse the repository at this point in the history
Co-authored-by: pmykhailov <pavelm@fornova.net>
  • Loading branch information
pashok88895 and pavelm-sup committed Nov 29, 2023
1 parent 16025da commit 22cae0f
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 22cae0f

Please sign in to comment.