Articles



Simplify GROQ query with optional fields

May 21, 2023

🕑
about a minute read
💡
Tip
In working with Sanity and GROQ, there might be instances where you need to filter data using an optional field, and want a default value to kick in when null values are returned. For instance, consider an __i18n field added after a significant amount of c...