Miss edge in query, get wrong results

One edge is missing in the query, and those that do not meet the conditions also appear in the results:

this is right result:

Remove the code in the red box, get a completely different result:
**This code also shows the result that postCount=0. **
What is the reason for this?

by the way, Is there any way to sort by postCount?

oh, the relationship like this:

Looking at the pictures, both pictures say postCount:5

The first one has only a single object, the second example has at least two objects in the array.

I think this would be because it has containerOf edge but that edge does not have a hasTag edge??

you’re right. thanks