1-to-1 relation overwrite in transaction doesn't work anymore. #5017
Labels
kind/bug
Something is broken.
priority/P1
Serious issue that requires eventual attention (can wait a bit)
status/accepted
We accept to investigate/work on it.
The issue
In v1.1.x with introduction of single relations, the only way to overwrite a single relation was to use multiple mutation in single transaction (delete + insert) (#4136).
However, it seems this method doesn't work anymore since v1.2.2 because of a bug.
What version of Dgraph are you using?
The issue exists on v1.2.2 and master.
The issue doesn't exist on v1.2.1
Steps to reproduce the issue (command/config used to run Dgraph).
There is a test I wrote to reproduce the issue. I added it in
query/query4_test.go
.Expected behaviour and actual result.
After a bisect it seems that the bug was introduced in cc495fc
Expected the test to pass.
Got:
The text was updated successfully, but these errors were encountered: