Use GROQ to Filter Items Based on an Array

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

The in keyboard in GROQ allows you to compare properties from your current JSON object scope against an Array of values to control which values should be returned. This becomes very important when matching against ids, types, and other fields that might exist on two separate JSON objects.