code: func (r *GormWorkItemLinkRepository) ListByWorkItem(ctx context.Context, wiID uuid.UUID) ([]WorkItemLink, error) {
  	defer goa.MeasureSince([]string{"goa", "db", "workitemlink", "listByWorkItem"}, time.Now())
  	var modelLinks []WorkItemLink
  	wi, err := r.workItemRepo.LoadFromDB(ctx, wiID)
  	if err != nil {
  		return nil, errs.WithStack(err)
  	}
  	// Now fetch all links for that work item
  	db := r.db.Model(modelLinks).Where("? IN (source_id, target_id)", wi.ID).Find(&modelLinks)
  	if db.Error != nil {
  		return nil, db.Error
  	}
  	return modelLinks, nil
  }
docs: // ListByWorkItem returns the work item links that have wiID as source or target.
  // TODO: Handle pagination