Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/src/decorators/mod.ts>Query

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
function Query
import { Query } from "https://deno.land/x/deno_nest@v3.5.1/src/decorators/mod.ts";

get the params from the request, if has key, then return the value which is parse by it`s type

Examples

such as http://localhost/api/users/1?name=tom, then params is {name: tom}

Parameters

optional
key: string