cube icon indicating copy to clipboard operation
cube copied to clipboard

total number of rows available in QueryRenderer and QueryBuilder

Open mihaiiova opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. When building data tables with QueryRenderer and QueryBuilder it is necessary to have the total no. of rows available. It is available via /load, but it would make life much easier if its available via the front-end connectors.

Describe the solution you'd like Total number of rows available in resultSet when using QueryRenderer and QueryBuilder.

Describe alternatives you've considered The alternative is to do another call, using the same query, with /load just for the total number of rows.

Additional context I'm using the Vue package (0.29.23), but I assume the discussion extends to React as well.

mihaiiova avatar Sep 18 '22 08:09 mihaiiova

Hey @mihaiiova It should be available in client: https://cube.dev/docs/@cubejs-client-core#total

As for the further support we're open for contributions.

ivan-vdovin avatar Sep 19 '22 12:09 ivan-vdovin

If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.

github-actions[bot] avatar Sep 19 '22 12:09 github-actions[bot]