The reason behind this issue is _:ub0038814 is treated as a blank node and the node cannot be identified with _:ub0038814 once the mutation has been performed.
There are 2 ways to update:
- Performing another mutation to update the predicate of the node. To do this you will have to know the uid of the node to update.
Reference: https://dgraph.io/docs/mutations/blank-nodes/ - Using upsert. You can get the uid of the node by querying and then updating the node using mutate.
Reference: https://dgraph.io/docs/mutations/extrenal-ids-upsert-block/