Actually, nevermind, I’ve just remembered about this PR Support for Gql variable in arrays by srfrog · Pull Request #2981 · dgraph-io/dgraph · GitHub and I thought about testing the hypothesis on this issue. And it worked.
query GetStuff($uids: string = "[0x1,0x2,0xa101]") {
operators(func: uid($uids)) {
uid
name
}
}
Result
{
"data": {
"operators": [
{
"uid": "0x1"
},
{
"uid": "0x2"
},
{
"uid": "0xa101"
}
]
}
}