Spraypaint the isomorphic, framework-agnostic Graphiti ORM
Statistics
Use #stats()
to request statistics. Access stats within meta
:
Typescript
Javascript
/posts?stats[total]=count
Stats are always independent of pagination. If you request the total count, you’ll get the total count even if you’re limiting to 10 per page. This means to get only statistics - avoid returning Post
instances altogether - simply request 0
results per page:
Typescript
Javascript
/posts?stats[total]=count&page[size]=0