Using GROQ to fetch all items in a collection except the first one.
Last updated: Oct 6, 2023
Hello, I am wondering if it's possible in GROQ to fetch all items in the collections without include the first entry? Is it possible to slice that way? For example, if I have a series of post that I ordered by their publish date, how would I get all of them besides the first one?
Oct 6, 2023, 9:20 PM
If you want to post your current query, that may help us be more specific, but generally, you can slice an array and use
notation to return all but the first (zeroth) index.
Oct 6, 2023, 9:44 PM
Excellent, thank you very much, that worked great.