Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak_nest/example/deps.ts>IsMongoId

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
function IsMongoId
import { IsMongoId } from "https://deno.land/x/oak_nest@v3.0.1/example/deps.ts";

Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. If given value is not a string, then it returns false.

Parameters

optional
validationOptions: ValidationOptions

Returns

PropertyDecorator