You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db.Model(&user).Updates(map[string]interface{}{"name": "hello", "age": 18, "active": false})
// UPDATE users SET name='hello', age=18, active=false, updated_at='2013-11-17 21:34:10' WHERE id=111;
it updates all fields and dependent objects in user!
Expected answer
I expect to update only fields specified in map.
The text was updated successfully, but these errors were encountered:
Document Link
[
](https://gorm.io/docs/update.html)Your Question
db.Model(&user).Updates(map[string]interface{}{"name": "hello", "age": 18, "active": false})
// UPDATE users SET name='hello', age=18, active=false, updated_at='2013-11-17 21:34:10' WHERE id=111;
it updates all fields and dependent objects in user!
Expected answer
I expect to update only fields specified in map.
The text was updated successfully, but these errors were encountered: