NXQL: how to query docs with a list property attribute equal to null / empty / unvaluated?
I have a custom doc model with a list attribute containing IDs to other objects, thus representing a list of links.
I'd like to query objects that have no values on this attribute, something like:
SELECT * FROM Document WHERE dc:subjects = NULL
Is it possible? I've not found anything like this in the official NXQL doc.
This should work:
SELECT * FROM Document WHERE dc:subjects/0 IS NULL
dc:subjects/* IS NULL may be actually very slightly more efficient.