Eagerload inverse relation I would like to eagerload inverse relation. Business case:
I have stories, stories are connected to books over relatedBooks field. Now I would like to query those books only which not have any story.

I do not see any easy way to do it, so I thought that to using eagerload the related stories somehow, and filtering out the nulls
What also could help is to just using having count somehow

But I am not able to do it, because I am not able to lead the relatedBooks(inverse) from books perspective, only from stories.

Tried to use the manyToMany plugin, but it is not helping either, just giving a nice interface

Also I know I can query one-by-one but that is silly

(last workaround would be to use hardcoded sql, but I would like to avoid this one:) )
UPDATE: 

in this case you should use :empty:, like this: 

{% set orphanBooks = craft.entries.section('books').relatedStories(':empty:') %}

ORIGINAL CONTENT 

According to the documentation, you can query the entries using your field handle: 


  TIP
  
  Most custom fields support element query parameters as well, named
  after the field handles.


https://docs.craftcms.com/v3/dev/element-queries/#executing-element-queries

You might use :notempty: as a negative selector, just like in this query: 

{% set products = craft.entries.section('product').productSale(':notempty:') %}  

These SE question and answers might be helpful, too: 

Get entries NOT related to categories

Return entries where field is &quot;not empty&quot;