title | sidebarTitle | icon |
---|---|---|
Client.Collections.Create |
Collections.Create |
layer-group |
func (collectionClient) Create(
ctx context.Context,
datasetID uuid.UUID,
collectionName string,
) (*datasets.Collection, error)
Create a collection in the dataset.
The id of the dataset The name of the collectionThe created collection object.
```go Go collection, err := client.Collections.Create(ctx, datasetID, "My-collection", ) ```