• Request Query Decorator Factory

    Returns a parameter decorator that maps the query string to the parameter.

    Example

    class MyController {
    \@Get("/hello")
    hello(@RequestQuery("name") name: string) {
    return \`Hello \${name}\`;
    }

    Returns

    • Parameter decorator

    Parameters

    • Optional queryName: string

      The name of the query to map

    Returns ParameterDecorator

Generated using TypeDoc