Hit count
Describes how to get hit count with total field
You can display the number of hits for your query with the total
field. This is useful to show at the top of the list, table, map or any form of Search Engine Results Page (SERP). By default. Content Graph shows accurate hit counts till 10,000 results, and when there are more, it will show a -1
to significantly improve the request times of queries. There are many cases where showing the hit count beyond 10,000 results is not needed.
If accurate hit counts are important, you can enable this by adding the optional input Boolean argument all
to the total
field. By default, you can omit this input argument and it will be false.
{
Content {
items {
Name
ContentType
}
total(all: true)
}
}
Updated about 2 months ago