Module

x/pothos/packages/plugin-validation/mod.ts>PothosValidationPlugin

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class PothosValidationPlugin
extends BasePlugin<Types>
import { PothosValidationPlugin } from "https://dotland.deno.dev/x/pothos@release-1691259632/packages/plugin-validation/mod.ts";

Properties

inputFieldValidators: Map<string, Record<string, zod.ZodType<unknown>>>

Methods

createValidator(
optionsOrConstraint: RefineConstraint | ValidationOptionUnion | undefined,
fieldName: string,
): zod.ZodTypeAny
wrapResolve(resolver: GraphQLFieldResolver<unknown, Types["Context"], object>, fieldConfig: PothosOutputFieldConfig<Types>): GraphQLFieldResolver<unknown, Types["Context"], object>