good way to get the "count" for paginated queries
I'm doing the following to get the total count and the values in a paginated query:
I wonder if there is a better way to do it.
I'll add more things in the
thank you in advance!
I wonder if there is a better way to do it.
I'll add more things in the
where to make a filter functionality and It would be great if I didn't have to add it in both places separately. Is there a way to do it (and still keep the type safety)?thank you in advance!