Hello,I’m new into strapi/graphql. I’ve been searching for an answer in the forum, but I’m new and maybe I’ve skipped something that can be useful to answer my question.
I’m using primereact datatables to display a list. Once I fetch is preettry much outside the box, I set the pagination and total records and I get tables filled up with data.
So for most of my sections this works great, but I have one, where I’ve set up multiple items inside each row. So the problem I got there is when I fetch data I get a mistmatch in my total records, since its matching the number of rows not items. If I fetch everything at once I have no problem since I just flat data, count and into the table.
But I was thinking how to do it if I wanted to request data as needed? If I wanted to use datatables controls for pagination << < 1,2,3,4, etc > >>. But I need the total records of items not rows from strapi, how can I set up this up? total items and not rows from the sv, insted of doing it myself at once and counting client side.
System Information
- Strapi Version: 4.19
- Operating System: Linux, AWS
- Database: Mysql 2.18.1
- Node Version: 18
- NPM Version: 6
- Yarn Version: