I have installed node_access for maintaining access per node. I need to write a sql query using entityQuery service and display only those nodes which respect node_access configuration per node. I am not able to find any documentation for this. Currently my entityQuery is showing all results to ananymous users. Please let me know If one write query to resepct node_access module.
$query = \Drupal::entityQuery('node'); $query->condition('type', 'article'); $nids = $query->execute();