createCollection method

Future<Map<String, dynamic>> createCollection(
  1. String name, {
  2. CreateCollectionOptions? createCollectionOptions,
  3. Map<String, Object>? rawOptions,
})

This method explicitly creates a collection

Implementation

Future<Map<String, dynamic>> createCollection(String name,
    {CreateCollectionOptions? createCollectionOptions,
    Map<String, Object>? rawOptions}) async {
  var command = CreateCollectionCommand(this, name,
      createCollectionOptions: createCollectionOptions,
      rawOptions: rawOptions);
  return command.execute();
}