Skip to content

Commit 22cae0f

Browse files
fix(NODE-5765): change type for countDocuments (#3932)
Co-authored-by: pmykhailov <[email protected]>
1 parent 16025da commit 22cae0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collection.ts

+1-1
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)