Filter Arrays in JSON Based on Other Arrays in GROQ

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

We can also use GROQ's in keyword in our filters and negate it using the !() syntax. This allows us to exclude items that might be included later on in joins before we even get to the projection stage of our query. This example demonstrates filtering out all of the evolutions of Pokemon since they will be included by joining them into the base Pokemon objects.