hi, I need to count how many people each person interacts with that he doesn’t know.
In this way, in the B red box, filtering doesn’t work, and the results still include the person that this person knows.
The first query won’t work. Cuz the variable doesn’t propagate well in multiple level querying.
The second one would be the right approach. But you should limit it for a single user. Not 3 or more. Cuz Dgraph injects all users found in “knows_uid” from all users found. Unless you wanna this behave.
What do you mean? collect a list of users and then use them to filter? your first query is collecting users in a different way. If you wanna use a list of users as a parameter, this should be a separate block with its constraints and then you can use it in the target block. But I feel like that’s not what you mean.