thanks, problem solved, I used the code below:
d = Knowledge{
Uid: srcId,
RelatedTo: []Knowledge{{
Uid: targetId,
}},
}
}
pb, err := json.Marshal(d)
mu := &api.Mutation{
CommitNow: true,
DeleteJson: pb,
}
it’s just that the dgo documentation is not so complete