How to query all the values of a particular field. I used Drupal\Core\Database\Connection object
to fetch the values as below:
$connection = \Drupal::database();
$result = $connection->select('node__body', 'n')
->fields('n', array('body_value'))
->execute()->fetchCol();
Is there any Drupal 8 API specifically for this? I need to fetch all values of the field and fetch the field values for a particular node bundle.