#Gorm nested struct within raw query?
3 messages · Page 1 of 1 (latest)
you need to use Preload() for nested structs is one of the reasons why I don't like anything about gorm
GORM
PreloadGORM allows eager loading relations in other SQL with Preload, for example: type User struct { gorm.Model Username string Orders []Order}type Order struct { gorm.Model Use