Get total number from Graphql Playground (for pagi...
# help-with-umbraco
u
Hi there, how can I get the total number of items?
I want to make a pagination, and I need to know the total number of elements,
m
It will like be in the pageInfo element if you add that I assume the total will be a property of it
u
Nope, it isn't: fyi @Matt Wise
m
https://docs.umbraco.com/umbraco-heartcore/api-documentation/content-delivery/content#success-response-3 looking through the docs allContent might not be the best option all the ones in the link do have a _totalPages
and _totalItems
u
Thank you, that looks good. Unfortunatly, I cna't apply some filters, i.e: { name_contains: $name }, most likely I'll need to make the filter on frontend, but is not best practice.
Does anyone have an idea how can I find the _totalItems using Graphql request?
10 Views