Module

x/pothos/packages/plugin-validation/index.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://dotland.deno.dev/x/pothos@release-1691259632/packages/plugin-validation/index.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>