Let’s not confuse things. This post is about DQL Vars(former GraphQL Variables). It’s not about query/Value variables. But you could use vars(Value variables) in conjunction with DQL Vars.
But we need to support this
e.g.
curl -H "Content-Type: application/rdf" -X POST localhost:8080/mutate?commitNow=true -d $'
upsert {
query foo($value: string) {
v as var(func: eq(something)) {
test as string($value) #this doesn't exist
}
}
mutation {
set {
uid(v) <other> val(test) . #you would pass the value via test variable.
}
}
}' | jq