GORM query based on child model in many-to-one relationship I am using GORM and have a structure like so: