Skip to main content

How to get report stat rows with all metrics

The rowsWithAllMetrics field in the ReportStat 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: GetReportStatInput!, $after: String) {
getReportStat(input: $input) {
reportTemplate {
name
code
}
rowsWithAllMetrics(first: 10, after: $after, reportType: Basic) {
totalCount
pageInfo {
hasNextPage
endCursor
}
nodes
}
}
}

Try in explorer