Skip to content

List Collections

This example assumes using Chroma; is in scope and apiKey contains your Chroma API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
var client = Client;

var collections = await client.Collection.ListCollectionsAsync(
    tenant: "default_tenant",
    database: "default_database");

foreach (var collection in collections)
{
    Console.WriteLine($"Collection: {collection}");
}