πŸ‘€ See Sanity in action: Watch product demo 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
*[!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.io – build remarkable experiences at scale

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