Skip to content

ListCategories

Source: src/AWS/QApps/ListCategories.ts

Runtime binding for qapps:ListCategories.

Lists the library categories of the bound app’s Q Business application environment instance. Provide the implementation with Effect.provide(AWS.QApps.ListCategoriesHttp).

// init — bind the operation to the Q App
const listCategories = yield* AWS.QApps.ListCategories(app);
// runtime
const result = yield* listCategories();
console.log(result.categories?.map((c) => c.title));