I have a custom vocabulary called "healthcare_terms" that has enabled terms attached to a custom content type called "health_posts".
I just want to find all nodes that are tagged with enabled terms from "healthcare_terms"
I tried the following but it does not seem to be working.
$query = \Drupal::entityQuery('node') ->condition('type', 'health_posts') ->condition('status', 1) ->condition('field_tags.entity.name', 'healthcare_terms'); $ids = $query->execute();
Clearly I am lost. Any help or tips?