Moved from GitHub dgraph/4309
Posted by zhaodengchang:
What you wanted to do
GraphQL Variables can be used in math function
What you actually did
We use GraphQL Variables to input a float value $a to the Dgraph query , and want to do some calculation with math function, e.g. : math($a + 1.23)
Why that wasn’t great, with examples
Currently it doesn’t work.