count
Count documents in a MongoDB collection that match a specified query filter.
Instructions
Count documents in a collection matching a query
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | Index hint | |
| skip | No | Docs to skip before counting | |
| limit | No | Max documents to count | |
| query | No | Query filter to count | |
| collation | No | Collation rules for comparison | |
| maxTimeMS | No | Max execution time | |
| collection | Yes | Collection name | |
| readConcern | No | Read concern option | |
| objectIdMode | No | Control how 24-character hex strings are handled | auto |