
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeYes, absolutely! GROQ's slice component is perfect for this. You can use array slicing to skip the first entry and get all the rest.
Here's how to do it:
*[_type == "post"] | order(publishDate desc) [1..-1]This query:
[1..-1] to slice from index 1 (the second item) to the endThe slice syntax in GROQ works like this:
[1..-1] - starts at index 1 (second item) and goes to the last item[1...] - also works, starting at index 1 and going to the end (using ... excludes the right-hand boundary)[0] - would give you just the first item[1..5] - would give you items at indices 1 through 5The key thing to remember is that GROQ uses zero-based indexing, so:
0 is the first item1 is the second item-1 refers to the last itemSo if you want everything except the first entry, [1..-1] or [1...] is what you need. Just make sure to apply your ordering before the slice, otherwise you'll be skipping the wrong item!
You can read more about pipeline components and slicing syntax in the GROQ documentation.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store