Describe the feature
It would be nice to be able to always eager load a specific column, i.e. like this:
type Wardrobe struct {
Shirts []Shirt `gorm:"many2many:shirts_wardrobes;preload"`
}
Motivation
I'm noticing that some nested models are really always relevant, and to explicitly Preload on every query is cumbersome. Furthermore it's easy to forget and have to debug why expected nested models aren't present only to realize they weren't preloaded.
I'd be willing to contribute this if @jinzhu agrees it would be nice!
Related Issues
N/A
Comment From: github-actions[bot]
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days