[feature] uid_in query with QueryWithVars

MichelDiz commented :

it is already possible to do

follows @filter(uid_in(~follows, [0x1d, 0x1e, 0x20, 0x21])) 

unfortunately, you can’t do:

follows @filter(uid_in(~follows, $uids)) 

with multiple uids. Pinging @anurags92


you can do

follows @filter(uid_in(~follows, [$uids]))
#Message: : Value "0x1d, 0x1e, 0x20, 0x21" in uid_in is not a number

but even so, you can add multiple uids in the GraphQL Query.

Also, it is not possible to force the pseudo-array in the GraphQL Query:

query query($uids: string = "[0x1d, 0x1e, 0x20, 0x21]") {
  query(func: has(follows)) @cascade
    {
    uid
      follows @filter(uid_in(~follows, $uids)) 
      {
        uid
      }
  }
}