# WithTransformQueryRouteValue

- Module: [Aspire.Hosting.Yarp](/reference/api/go/aspire.hosting.yarp.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`YarpRoute`](/reference/api/go/aspire.hosting.yarp/yarproute.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

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

## Definition

```go
func (YarpRoute) 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()`.

## Applies to

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