PreloadNote preloads the associations for a notes for the given query
(conn *gorm.DB)
| 21 | |
| 22 | // PreloadNote preloads the associations for a notes for the given query |
| 23 | func PreloadNote(conn *gorm.DB) *gorm.DB { |
| 24 | return conn.Preload("Book").Preload("User") |
| 25 | } |