# Function toExecutePivotQueryParams
toExecutePivotQueryParams(
widgetModel
):ExecutePivotQueryParams
Translates a WidgetModel to the parameters for executing a query for the pivot widget.
# Parameters
Parameter | Type |
---|---|
widgetModel | WidgetModel |
# Returns
# Example
const {data, isLoading, isError} = useExecutePivotQuery(widgetModelTranslator.toExecutePivotQueryParams(widgetModel));
Note: this method is supported only for getting pivot query. Use toExecuteQueryParams instead for getting query parameters for non-pivot widgets.