Closed kolkov closed 4 years ago
Hi! I try to exclude field with embedded struct from inserting to DB, is it possible? For example:
type Contact struct{ Email string Phone string } type Person struct{ Name string Age int ContactInfo Contact `db:"-"` //not working }
or r.db.With(ctx).Model(&person).Exclude("ContactInfo").Insert() //not working
r.db.With(ctx).Model(&person).Exclude("ContactInfo").Insert() //not working
Extra comma instead space in my struct tag definition.
Hi! I try to exclude field with embedded struct from inserting to DB, is it possible? For example:
or
r.db.With(ctx).Model(&person).Exclude("ContactInfo").Insert() //not working