code: func (r *GormQueryRepository) Load(ctx context.Context, ID uuid.UUID, spaceID uuid.UUID) (*Query, error) {
  	defer goa.MeasureSince([]string{"goa", "db", "query", "show"}, time.Now())
  	q := Query{}
  	tx := r.db.Where("id = ? and space_id = ?", ID, spaceID).First(&q)
  	if tx.RecordNotFound() {
  		log.Error(ctx, map[string]interface{}{
  			"query_id": ID.String(),
  		}, "record not found")
  		return nil, errors.NewNotFoundError("query", ID.String())
  	}
  	if tx.Error != nil {
  		log.Error(ctx, map[string]interface{}{
  			"err":      tx.Error,
  			"query_id": ID.String(),
  		}, "unable to load the query by ID")
  		return nil, errors.NewInternalError(ctx, tx.Error)
  	}
  	return &q, nil
  }
docs: // Load Query in a space