You can use a $lookup to get the author of a book and then $match on that:
/Edit to add that if this is a common query then you may want to think about embedding the author name in the books, after all how often does an author of a book change…
I assume Mongoose is also in your stack given the fragment, I don’t have much experience with Mongoose and use the raw driver instead so won’t be able to help with that.
You could share the source files so someone who does know can take a look.
After 3 days lost on web without success I found it
I must only define a $lookup for a join than a $set to extract the filed i need for queries.
That’s all