I am writing a Golang application using Dgraph for persisting objects. From the documentation, I can infer that a new UID
and hence a new node is created everytime I mutate an object/run the code.
Is there a way to update the same node data instead for creating a new node?
I tried changing the UID
to use "_:name"
for the UID
field but even this creates a new node everytime the application is run. I wish to be able to update the existing node if it is already present in the DB instead of creating a new node for it.