How to user filter with variable?

Something like this

{
  var(func: has(post_id)){
    post_id
    follower as ~authored
    wholiked as ~liked
  }

  users(func: uid(wholiked)) @filter(uid_in(follows, uid(follower))) {
     user_id
  }
  
}