collection-schema
Analyze and describe the schema of a specified MongoDB collection to understand its structure and field types for database optimization and management.
Instructions
Describe the schema for a collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"database": {
"description": "Database name",
"type": "string"
}
},
"required": [
"database",
"collection"
],
"type": "object"
}