diggy
(Dgraph Bot)
1
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.
2 Likes
diggy
(Dgraph Bot)
2
MichaelJCompton commented :
This looks like a reasonable feature request.
I’m tagging it as accepted, which means it will get into our backlog of features to consider.
If we decide to implement it, we’ll post an update here.
BenW
(Ben W)
3
Is this possible? I want to return the $offset
value in the query result.