Your Question
Is there a way to check which key was duplicate, in case of a ErrDuplicateKey error?
The document you expected this should be explained
Comment From: a631807682
Currently not supported, you can convert errors by yourself without using gorm.ErrDuplicateKey https://github.com/go-gorm/postgres/pull/162#discussion_r1138089642