You can use the DeleteEdges for this before adding the new person.household.
mu = &api.Mutation{}
client.DeleteEdges(mu, 0x3669, "person.household")
mu.CommitNow = true
_, err = dg.NewTxn().Mutate(ctx, mu)
if err != nil {
log.Fatal(err)
}
You can use the DeleteEdges for this before adding the new person.household.
mu = &api.Mutation{}
client.DeleteEdges(mu, 0x3669, "person.household")
mu.CommitNow = true
_, err = dg.NewTxn().Mutate(ctx, mu)
if err != nil {
log.Fatal(err)
}