# YarpRoute.WithTransformQueryValue

- Module: [Aspire.Hosting.Yarp](/reference/api/go/aspire.hosting.yarp.md)
- Defined on: [YarpRoute](/reference/api/go/aspire.hosting.yarp/yarproute.md)
- Version: `17.0.0`
- Kind: `method`

Adds the transform that will append or set the query parameter from the given value.

## Definition

```go
type YarpRoute interface {
    // ... omitted for brevity
    WithTransformQueryValue(
        queryKey string,
        value string,
        options ...*WithTransformQueryValueOptions,
    ) YarpRoute
}
```

## Signature

```go
WithTransformQueryValue(
    queryKey string,
    value string,
    options ...*WithTransformQueryValueOptions,
) YarpRoute
```

## Parameters

- `queryKey` (`string`)
- `value` (`string`)
- `options` (`...*WithTransformQueryValueOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithTransformQueryValueOptions` argument.

- `Append` (`*bool`)

## Returns

[`YarpRoute`](/reference/api/go/aspire.hosting.yarp/yarproute.md)

Returns a handle; failures surface later via `Err()`.

## Defined on

- [YarpRoute](/reference/api/go/aspire.hosting.yarp/yarproute.md) -- `handle`
