Why does Sequelize “include / attributes” won’t work with findAll and findOne requests

I’m working on an API communicating with MySQL via Sequelize.
I’m dealing with users and their publications. This works perfectly fine, I can cerate users and publications with userId associated. But now I want to get the name of the user who did the publication, and not just the userId.

How do I add conditions in sub-sub child models in sequelize which should impact my parent Model in findAndCountAll?

In sequelize, I want to add a condition in findAndCountAll call in sub-sub child models. If the condition is false, it should impact on parent models and findAndCountAll should return array length 0. Currently, just that sub-sub child model’s array length gets 0 and the rest of parents are being returned.