getInsightWithCatalogItems()
Home > @gooddata/sdk-backend-spi > IWorkspaceInsightsService > getInsightWithCatalogItems
IWorkspaceInsightsService.getInsightWithCatalogItems() method
Request insight for the given reference together with related catalog items
Signature:
getInsightWithCatalogItems(ref: ObjRef): Promise<{
        insight: IInsight;
        catalogItems: Array<ICatalogFact | ICatalogMeasure | ICatalogAttribute>;
    }>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| ref | insight reference | 
Returns:
Promise<{ insight: IInsight; catalogItems: Array<ICatalogFact | ICatalogMeasure | ICatalogAttribute>; }>
promise of catalog item of type metric or fact