Hi All,
I tried using the syntax in Query and mutate in the same statement? to retrieve a variable and use it in a mutation, but I must be doing something wrong. With the below statement, I get the error Expected Left round brackets. Got: lex.Item [6] \"{\
. I’m using Dgraph v0.8.1. Sorry if this question is a duplicate from somewhere - I wasn’t able to find a working example.
{
var(func: eq(VertexType, "Namespace")) @filter(eq(Name, "General")) {
NamespaceUid AS _uid_
}
mutation {
set {
_:a <Name> "This thing" .
_:a <Namespace> val(NamespaceUid) .
}
}
}