code: func (r *GormTrackerQueryRepository) Create(ctx context.Context, tq TrackerQuery) (*TrackerQuery, error) {
  	wiType, err := r.witr.Load(ctx, tq.WorkItemTypeID)
  	if err != nil {
  		return nil, errors.NewBadParameterError("WorkItemTypeID", tq.WorkItemTypeID)
  	}
  
  	allowedWIT, err := r.wir.CheckTypeAndSpaceShareTemplate(ctx, wiType, tq.SpaceID)
  	if err != nil {
  		return nil, err
  
  	}
  	if !allowedWIT {
  		return nil, err
  	}
  
  	if err := r.db.Create(&tq).Error; err != nil {
  		return nil, errors.NewInternalError(ctx, r.db.Error)
  	}
  	return &tq, nil
  }
docs: // Create creates a new tracker query in the repository
  // returns BadParameterError, ConversionError or InternalError