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

x/oak_nest/modules/mysql/example/deps.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@v1.15.1/modules/mysql/example/deps.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