findOne
Retrieve a single document from a MongoDB collection using a filter query. Specify fields to include or exclude with projection.
Instructions
Find a single document in a MongoDB collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | MongoDB filter query | |
| collection | Yes | Collection name | |
| projection | No | Fields to include/exclude |