Paginating Sanity Content with GROQ Without Over-Fetching Your Dataset
GROQ paginates with an inclusive slice operator applied after filtering and ordering. Here's the query shape, a working route handler, and the offset pitfalls to check before shipping.