I am trying to update a list of uids in Dgraph via DQL.
uidList: [uid] .
type DummyType {
uidList
}
So for example I want to update an already existing uid list (predicate uidList) consisting of 0x1, 0x2, 0x3 to 0x5, 0x6, 0x7, 0x8.
I am using the Golang client Dgo. Is the above possible in one transaction/call? Currently I have to first delete the existing list and after that set the new elements.
Thank you for the help. I tested your code and it works as expected.
Is it also possible to delete all edges without knowing the uids and after that insert the new edges? I tried the mutation below, but it seems the delete block is executed after the set block, so I end up with no edges at all.