mongo-find-documents
Query documents from a MongoDB collection using database name, collection name, and optional filters to retrieve specific data records.
Instructions
Query documents from a MongoDB collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name | |
filter | No | Query filter as JSON object (optional) | |
limit | No | Maximum number of documents to return (optional) |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"database": {
"description": "Database name",
"type": "string"
},
"filter": {
"additionalProperties": {},
"description": "Query filter as JSON object (optional)",
"type": "object"
},
"limit": {
"description": "Maximum number of documents to return (optional)",
"type": "number"
}
},
"required": [
"database",
"collection"
],
"type": "object"
}