We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16025da commit 22cae0fCopy full SHA for 22cae0f
src/collection.ts
@@ -740,7 +740,7 @@ export class Collection<TSchema extends Document = Document> {
740
* @see https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere
741
*/
742
async countDocuments(
743
- filter: Document = {},
+ filter: Filter<TSchema> = {},
744
options: CountDocumentsOptions = {}
745
): Promise<number> {
746
return executeOperation(
0 commit comments