Find One
AI-generatedSummary
Find a single document in a specified MongoDB collection using a filter query.
Inputs
- Database (required) — MongoDB database name to query.
- Collection (required) — MongoDB collection name to query.
- Query — Set of fields used to filter the documents for the find operation. Each field includes a key, type, and value to build the query.
Output shape
a single JSON object representing the first document matching the query if found; otherwise, no output data for that item.
If a document matches the query, it is returned as a JSON object; if no document matches, nothing is returned for that item. Multiple input items lead to multiple single document results, one per input.