Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

How to Filter by Items not having a Property Set - GROQ

2 replies
Last updated: Apr 16, 2020
Got a question...How do you filter by items not having a property set?
Something like
*[!prop]
doesn't seem to work, and neither does
*[prop == null]
Apr 16, 2020, 10:52 PM
*[_type == 'post' && !defined(property)]
Apr 16, 2020, 11:45 PM
Nice!! Thanks a lot!
Apr 16, 2020, 11:47 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?