create-index
Create indexes for MongoDB collections to improve query performance and enable efficient data retrieval.
Instructions
Create an index for a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name | |
| name | No | The name of the index | |
| definition | Yes | The index definition. Use 'classic' for standard indexes. |