Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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-1716310600/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>