Use GROQ `select` to Set Values Based on Conditions

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

GROQ's select function works kind of like a JavaScript switch statement. You give it some conditions and a default and it will assign the first condition that passes to the new field you've created.