Good afternoon,

I want to know how I can get the nodes that have images only.

Is there any fields to make condition when I do something like

entityQuery('node')->condition('hasImage', true)->execute();

Thank you.