Retriving nodes by content type using Drupal::entityQuery I created a content type named product. How can I retrive all node of such content type using the entityQuery method?

I tried with this, but it doesn't works: 

$ids = \Drupal::entityQuery('product')
  -&gt;execute();

$products = \Drupal::entityManager()
  -&gt;getStorage('node')
  -&gt;loadMultiple($ids);
This is how we do this:

$ids = \Drupal::entityQuery('node')
  -&gt;condition('type', 'product')
  -&gt;execute();

$products = \Drupal::entityManager()
  -&gt;getStorage('node')
  -&gt;loadMultiple($ids);