createIndex
Create one or more indexes on a MongoDB collection to optimize queries, enforce uniqueness, or set TTL expiration.
Instructions
Create one or more indexes on a MongoDB collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexes | Yes | Array of index specifications | |
| collection | Yes | Name of the collection to create indexes on | |
| commitQuorum | No | Number of members required to create the index | |
| objectIdMode | No | Control how 24-character hex strings are handled | auto |
| writeConcern | No | Write concern for index creation |