Nested relation filter
For example:
Table with users and the total of posts and the total of comments. The admin should be able to filter based on the number of comments.
I made initially using the .paginate and then computed the values but what happen when need to filter based on 100+ comments, or 100 comments marked as spam, or 100 comments marked as spam this month on posts related to "Convex" for example?
I know about the denormalization method or the recently new aggregate component, but both seems to get really complex that some point.
With SQL will be like:
I know, this is inefficient AF and will take may be some seconds to resolve but is at least possible.
I don't know if may be there is another way without using denormalization or the aggregate component?
