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:) )