Search for all files where list-type property is present but where the list is empty

What I’m trying to do

I need to search for all files without a particular front-matter property

and then separately

where that property is present but where the list is empty.

Things I have tried

Can’t find any examples. Tried all syntax’s I can think of and tried to replicate in general search.

this doesn’t work for example:

TABLE
WHERE contains(ontology_association, [[domain]])
TABLE
WHERE contains(ontology_association, null)

this does the first bit:

TABLE
WHERE !ontology_association

but how do I check for nothing in the list please if the property is there but with nothing in its array

SORRY:

FOUND IT:

https://s-blu.github.io/obsidian_dataview_example_vault/20%20Dataview%20Queries/List%20all%20files%20with%20missing%20category%20tag%20or%20empty%20meta%20data%20field/

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.