CreateIndex

Create a new index for a collection.

Parameters:

  • collectionName: The name of the collection to create the index for.
  • index: The index configuration object.