RQB: Why is a where clause inside a many-to-many relation not allowed?
Say we have posts and tags. Every post can have multiple tags, but a tag can have many posts. So a classical many-to-many relation.
Note: we have a junction table to store the relation
posts
1-n postsToTags
n-1 tag
Now we want to fetch a post with all the tags. We can just do this:
But say we only want the tags that contain "hello" in the label:
Why is it not allowed in the types? Is there something that could easily break if we add a where clause to the subquery?0 Replies