We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9293bbb + 01186a2 commit 63a60daCopy full SHA for 63a60da
README.md
@@ -34,5 +34,5 @@ DB.Model(&User{}).Where("id = 1").Update("age", 12)
34
35
// When want to use GORM's Save method, need to call Select. Otherwise, will return primary key duplicate error.
36
// The Select param is the fields that you want to update or "*".
37
-DB.Model(&user).Select("*").Updates(&User{Age: 18})
+DB.Model(&user).Select("*").Save(&User{Age: 18})
38
```
0 commit comments