79072336

Date: 2024-10-09 23:38:06
Score: 1
Natty:
Report link

I believe what you're looking for is how to eager load your model relationships in gorm.

When fetching your TreatmentFormOutput from the database, it should look like this: db.Preload("Indicators").Find(&treatments). See here for more on Eager Loading in form.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Oluojomu