createCollectionIndex abstract method
Creates an index on the specified field path.
path follows the backend’s notation (JSON pointer/dot path). indexName lets you
set an explicit index name.
Implementation
Future<CollectionIndex> createCollectionIndex({
required String collection,
required String path,
String? indexName,
RpcContext? context,
});