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

x/pothos/packages/plugin-validation/types.ts>StringValidationOptions

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
interface StringValidationOptions
import { type StringValidationOptions } from "https://deno.land/x/pothos@release-1690733553/packages/plugin-validation/types.ts";

Type Parameters

optional
T extends string = string

Properties

optional
type: "string"
optional
minLength: Constraint<number>
optional
maxLength: Constraint<number>
optional
length: Constraint<number>
optional
url: Constraint<boolean>
optional
uuid: Constraint<boolean>
optional
email: Constraint<boolean>
optional
regex: Constraint<RegExp>