code: func (r *GormQueryRepository) Delete(ctx context.Context, ID uuid.UUID) error {
  	defer goa.MeasureSince([]string{"goa", "db", "query", "delete"}, time.Now())
  	q := Query{ID: ID}
  	tx := r.db.Delete(q)
  
  	if err := tx.Error; err != nil {
  		log.Error(ctx, map[string]interface{}{
  			"query_id": ID.String(),
  		}, "unable to delete the query")
  		return errors.NewInternalError(ctx, err)
  	}
  	if tx.RowsAffected == 0 {
  		log.Error(ctx, map[string]interface{}{
  			"query_id": ID.String(),
  		}, "no row was affected by the delete operation")
  		return errors.NewNotFoundError("query", ID.String())
  	}
  	return nil
  }
docs: // Delete deletes the query with the given id, returns NotFoundError or InternalError