Skip to main content
Module

x/oak_nest/mod.ts>Query

Refer to nestjs to realize some common functions for Deno
Go to Latest
function Query
import { Query } from "https://deno.land/x/oak_nest@v2.0.0/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