sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function useExecuteQuery

useExecuteQuery(...args): ExecuteQueryResult

React hook that executes a data query.

This approach, which offers an alternative to the ExecuteQuery component, is similar to React Query's useQuery hook.

Example

Execute a query to retrieve revenue per country per year from the Sample ECommerce data model. Then display the data in a table and column chart.

Additional useExecuteQuery() examples:

Parameters

ParameterType
...args[ExecuteQueryParams]

Returns

ExecuteQueryResult

Query state that contains the status of the query execution, the result data, or the error if any occurred

Last Updated: