✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

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
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?