Query condition on entity reference field count I need to query an article with more than 1 tag (a field entity reference) in drupal entity query.

I tried this : 

$query = Drupal::entityQuery('node')
                -&gt;condition('type', 'article')
                -&gt;condition('field_tags', 1, '&gt;');
dd($query-&gt;execute());


But I got more than expected the articles id's and I don't why. 

What is the good query to do that ?
Try to use the delta. This is explained here: QueryInterface: 

$query = Drupal::entityQuery('node')
            -&gt;condition('type', 'article')
            -&gt;condition('field_tags.%delta', 1, '&gt;');
dd($query-&gt;execute());