# YarpRoute.WithTransformQueryRouteValue

- 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 a route value.

## Definition

```go
type YarpRoute interface {
    // ... omitted for brevity
    WithTransformQueryRouteValue(
        queryKey string,
        routeValueKey string,
        options ...*WithTransformQueryRouteValueOptions,
    ) YarpRoute
}
```

## Signature

```go
WithTransformQueryRouteValue(
    queryKey string,
    routeValueKey string,
    options ...*WithTransformQueryRouteValueOptions,
) YarpRoute
```

## Parameters

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

## Options

Optional parameters are passed in a trailing `options ...*WithTransformQueryRouteValueOptions` 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`
