The best way is using the reverse notation ~ tilde. But you could do it by adding more blocks to your query. That mean you’d have to search for all users (so it will use a lot of resources of the cluster) and then check who is friend of bob as “parent” to “child” direction. So, It is more easy stick with the tilde right? but you can do it.
e.g:
query x{
x(func: has(is_user)) @filter(uid_in(friend, Bob'sUid){
uid
name
}
}