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

x/deno_nest/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/deno_nest@v3.15.1/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