create-index
Generate indexes for MongoDB collections to optimize query performance. Specify database, collection, and index keys to enhance data retrieval efficiency.
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 |