Limit the Number of Items Returned from a GROQ Query

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

When working with large datasets, or when you simply want the first couple of results, it's essential to understand how to slice an Array using GROQ. The syntax is simple and can be used on any Array from your JSON, it's mainly a matter of knowing where you want your start index and end index of the Array of results you want to return.