Filter by field in Blueprint

In the panel, I’m trying to show only posts with a specific (video) field that is not empty.

I’m half way there with this…

query: site.find('home').children.filterBy("video", "", false)

However, it’s having the opposite effect of showing all posts with the field empty.

I’ve tried all sorts of things for the past hour and I can’t understand why it’s not worked.

I even tried…

query: site.find('home').children.filterBy("video", "", true)

Can anyone help me out?

Thanks!!

filterBy('video', '!=', '')
1 Like

As easy as that!

Sometimes we look for the complicated when it should be simple.

Thanks @texnixe, really appreciate it!