How to filter paragraphs by the field name on parent using entityQuery?
Specifically with Paragraphs there are three extra fields directly on Paragraph level, which are accessible with EntityQuery: parent_id, parent_type (entity type like &quot;node&quot;, not bundle name like &quot;page&quot;), parent_field_name
You can use those three with EQ like a normal field, e.g.
-&gt;condition('parent_field_name', ['field_a', 'field_c'], 'IN')

Notice that those three fields are only available for Paragraphs, it will not work with any other entity type.