create-index
Generate database indexes for MongoDB collections by specifying database, collection, and key definitions to optimize query performance and data retrieval.
Instructions
Create an index for a collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name | |
keys | Yes | The index definition | |
name | No | The name of the index |