createCollectionIndex abstract method

Future<CollectionIndex> createCollectionIndex({
  1. required String collection,
  2. required String path,
  3. String? indexName,
  4. RpcContext? context,
})

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,
});