This is an automated archive.

The original was posted on /r/golang by /u/Gold-Cabinet-364 on 2023-08-09 10:13:10+00:00.


How to do inner join for one to many relation in golang? If I use inner join function of gorm, it gives error that the embedded model should not be slice. But if it is one to many relation the embedded table has to be slice. And when I use Preload the functionality works like left join. Even those models come whose right table doesn’t exist.