diff --git a/client/db.go b/client/db.go index 5c87940aba..7fe5470ecb 100644 --- a/client/db.go +++ b/client/db.go @@ -191,6 +191,9 @@ type Store interface { // GetCollections returns all collections and their descriptions matching the given options // that currently exist within this [Store]. + // + // Inactive collections are not returned by default unless a specific schema version ID + // is provided. GetCollections(context.Context, CollectionFetchOptions) ([]Collection, error) // GetSchemaByVersionID returns the schema description for the schema version of the diff --git a/db/collection.go b/db/collection.go index b018c97788..c9d311f01a 100644 --- a/db/collection.go +++ b/db/collection.go @@ -709,8 +709,11 @@ func (db *db) getCollectionByName(ctx context.Context, txn datastore.Txn, name s return cols[0], nil } -// GetCollections returns all collections and their descriptions matching the given options +// getCollections returns all collections and their descriptions matching the given options // that currently exist within this [Store]. +// +// Inactive collections are not returned by default unless a specific schema version ID +// is provided. func (db *db) getCollections( ctx context.Context, txn datastore.Txn,