Skip to main content
func (collectionClient) Create(
    ctx context.Context,
    datasetID uuid.UUID,
    collectionName string,
) (*datasets.Collection, error)
Create a collection in the dataset.

Parameters

datasetID
uuid.UUID
The id of the dataset
collectionName
string
The name of the collection

Returns

The created collection object.
collection, err := client.Collections.Create(ctx,
    datasetID,
    "My-collection",
)