> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# Data layer

> Execute analytics queries, work with the data model, and consume results programmatically.

Work with data outside the prebuilt visualizations. Use the execution components and hooks to run your own executions, read the results, and export data, for example to feed a custom visualization or a third-party charting library.

The components ([`Execute`](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.execute/index.md), [`RawExecute`](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.rawexecute/index.md), [`ExecuteInsight`](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.executeinsight/index.md)) run an execution and pass the result to a render-prop child. The hooks (`useExecutionDataView`, `useInsightDataView`, `useDataExport`, `useCancelablePromise`, `usePagedResource`) return a status-bearing object you can render from. [Execution](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/execution/index.md) describes what the backend computes and how the result is shaped, and [Data model](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/data-model/index.md) covers the `@gooddata/sdk-model` objects that executions take as input.

## Pages

- [Execute](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/execute/index.md): Fetch and render backend data with the Execute component using series, slices, filters, and a render-prop child.
- [RawExecute](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/raw-execute/index.md): Run a prepared execution and pass the resulting data view to a render-prop child.
- [ExecuteInsight](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/execute-insight/index.md): Run a saved visualization and pass the resulting data view to a render-prop child.
- [useInsightDataView](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/use-insight-data-view/index.md): Load a saved visualization by reference and return its execution result as a DataViewFacade with optional filters and sorting.
- [useExecutionDataView](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/use-execution-data-view/index.md): Fetch execution data as a DataViewFacade from a prepared execution or inline seriesBy/slicesBy configuration.
- [useCancelablePromise](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/use-cancelable-promise/index.md): Track promise status in React with automatic cancellation of stale results when dependencies change.
- [useDataExport](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/use-data-export/index.md): Use useDataExport to run CSV, XLSX, or raw exports from a prepared execution, handle export lifecycle callbacks, and retrieve the download URI.
- [usePagedResource](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/use-paged-resource/index.md): Fetch and accumulate items from a paginated SDK resource, with fetch and reset dependency lists.
- [Data model](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/data-model/index.md): Build and inspect the SDK model objects that describe what to compute: references, attributes, measures, hierarchies, and placeholders.
- [Execution](https://www.gooddata.ai/docs/gooddata-ui/latest/data-layer/execution/index.md): Define what the backend computes and how the result is shaped: dimensions, sorting, totals, derived measures, and data sampling.
