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

x/pothos/packages/plugin-complexity/mod.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://deno.land/x/pothos@release-1699481559/packages/plugin-complexity/mod.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; }