Node Reference Argument In loadByProperties() while Creating API I have a custom module which generates an API, I want the API to filter content based on a node reference field. How do I pass the field field_author(Entity Reference from another content type) field as an argument to loadByProperties?

public function get() {

$entities = \Drupal::entityTypeManager()-&gt;getStorage('node')- 
&gt;loadByProperties(['field_author' =&gt; 'Holmes']);

}
Thanks to 4k4

I modified my code to

    $entities = \Drupal::entityTypeManager()-&gt;getStorage('node')- 
    &gt;loadByProperties(['field_author' =&gt; '469']); 


Where 469 is the nid of my Referenced Node