Your Question

刚刚发现只要通过Select()选择特定字段,Preload()就不生效。

通过Debug稳定复现。

The document you expected this should be explained

https://gorm.io/zh_CN/docs

Expected answer

请问这是为何?是我的用法有问题吗🤔️

Comment From: a631807682

Please provide reproducible code

Comment From: jinzhu

You need to include foreign fields in the selected columns.