Skip to content

GetLibraryItem

Source: src/AWS/QApps/GetLibraryItem.ts

Runtime binding for qapps:GetLibraryItem.

Retrieves a library item — its published app version, categories, status, and rating counts. Provide the implementation with Effect.provide(AWS.QApps.GetLibraryItemHttp).

// init — bind the operation to the Q App
const getLibraryItem = yield* AWS.QApps.GetLibraryItem(app);
// runtime
const item = yield* getLibraryItem({ libraryItemId });
console.log(item.ratingCount);