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

x/pothos/packages/plugin-complexity/index.ts>PothosComplexityPlugin

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

Properties

complexityCache: ContextCache<ComplexityResult, Types["Context"], [GraphQLResolveInfo]>
complexityError: ComplexityErrorFn
defaultComplexity
defaultListMultiplier

Methods

checkComplexity(ctx: Types["Context"], info: GraphQLResolveInfo)
getMax(ctx: Types["Context"])
wrapResolve(resolver: GraphQLFieldResolver<unknown, Types["Context"], object>, fieldConfig: PothosOutputFieldConfig<Types>): GraphQLFieldResolver<unknown, Types["Context"], object>