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

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

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
function Query
import { Query } from "https://deno.land/x/oak_nest@v3.0.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