Skip to main content
Latest
function helpers.getQuery
import { helpers } from "https://deno.land/x/adka_server@0.1.5/deps.ts";
const { getQuery } = helpers;

Given a context, return the .request.url.searchParams as a Map of keys and values of the params.

Parameters

ctx: Context | RouterContext
options: GetQueryOptionsAsMap

Returns

Map<string, string>

Given a context, return the .request.url.searchParams as a record object of keys and values of the params.

Parameters

ctx: Context | RouterContext
optional
options: GetQueryOptionsBase

Returns

Record<string, string>