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

x/oak_nest/example/deps.ts>IsMongoId

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