Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
GraphQL variables don't seem to be supported in arrays #2272
If you suspect this could be a bug, follow the template.
Either I'm doing something wrong or GraphQL variables that are used in arrays don't work. And since it's not possible to define variable as arrays, it also seems impossible to do something like:
Same happened me, trying the function for getting near locations:
As a workaround:
Hope this help someone
I've got the same problem using ratel, my current dgraph version is 1.0.6, this is in some way my query:
and I'm getting this error:
Just a quick note that @jmaeso 's solution unfortunately does not work with
This returns nothing, because dgraph is probably treating
Just an update on this thread.
That's the right way to use geo arguments in Dgraph, for who's trying that.
For the Inequality issue you can always use [ ] and set multiple values. Like so:
However I do not understand why eq does not work with GraphQL Variables in this case.