add_schema
Adds a JSON schema to a database collection. Specify the schema as a JSON string to enforce structure.
Instructions
Add a JSON schema to a collection. Provide the schema content as a JSON string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| schema | Yes | JSON schema content as a string (will be written to temporary file for CLI) |