Skip to main content

How to get report rows with all metrics

The rowsWithAllMetrics field in the Report object is designed to simplify data retrieval in GraphQL queries. It allows users to fetch all available metrics for each row within a report, without specifying each metric individually. This feature is particularly useful in scenarios where comprehensive data analysis is required, and all metrics are of interest.

query GetAllMetrics($input: GetReportInputType!, $after: String) {
getReport(input: $input) {
reportTemplate {
name
code
}
rowsWithAllMetrics(first: 10, after: $after) {
totalCount
pageInfo {
hasNextPage
endCursor
}
nodes
}
}
}

Try in explorer