Module

x/pothos/packages/plugin-complexity/validator.ts>createComplexityRule

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
function createComplexityRule
import { createComplexityRule } from "https://dotland.deno.dev/x/pothos@release-1688425816/packages/plugin-complexity/validator.ts";

Parameters

unnamed 0: { context: object; variableValues: Record<string, unknown>; maxComplexity?: number; maxDepth?: number; maxBreadth?: number; validate?: (result: { complexity: number; depth: number; breadth: number; }, reportError: (error: GraphQLError) => void) => void; onResult?: (result: { complexity: number; depth: number; breadth: number; }, errors: GraphQLError[]) => void; }