Join Slack
Powered by
Hi all! Could anybody tell me, why Prisma doesn't ...
# orm-help
v
Vadim
12/16/2018, 8:29 PM
Hi all! Could anybody tell me, why Prisma doesn't support property totalCount for pagination (as like this
https://graphql.org/learn/pagination/#complete-connection-model
)?
w
woss
12/16/2018, 8:55 PM
it's
aggregate.count
from Connections.
woss
12/16/2018, 8:55 PM
https://www.prisma.io/docs/1.22/prisma-graphql-api/reference/queries-qwe1/#connection-queries
v
Vadim
12/17/2018, 8:45 AM
Thnx! Should I perform 1 extra request to get the total count of records (without first, last, skip parameters)?
w
woss
12/17/2018, 10:57 AM
i think
aggregate.count
returns full total, im not sure
v
Vadim
12/17/2018, 3:13 PM
unfortunately not 😞 if the param "first" is specified in the query, it'll be equal to it
w
woss
12/17/2018, 6:44 PM
interesting, maybe its'a a bug
2
Views
Open in Slack
Previous
Next