find_one
Retrieve a single document from a MongoDB collection using a query filter. Returns the first document that matches the specified condition.
Instructions
Find a single document in a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Query filter (MongoDB query syntax) | |
| collection | Yes | Collection name |