#Gorm nested struct within raw query?

3 messages · Page 1 of 1 (latest)

fallow sedge
#

Wondering how I could get a nested struct from a raw query? is this possible?

I have a complex outer query that returns a list of structs but within each struct i want to return a list of its relations from another table. Is this possible with gorm?

jovial otter
#

you need to use Preload() for nested structs is one of the reasons why I don't like anything about gorm