import { PothosComplexityPlugin } from "https://deno.land/x/pothos@release-1695766300/packages/plugin-complexity/mod.ts";
Type Parameters
Types extends SchemaTypes
Properties
complexityCache: ContextCache<ComplexityResult, Types["Context"], [GraphQLResolveInfo]>
complexityError: ComplexityErrorFn
Methods
checkComplexity(ctx: Types["Context"], info: GraphQLResolveInfo)
onOutputFieldConfig(fieldConfig: PothosOutputFieldConfig<Types>)
wrapResolve(resolver: GraphQLFieldResolver<unknown, Types["Context"], object>, fieldConfig: PothosOutputFieldConfig<Types>): GraphQLFieldResolver<unknown, Types["Context"], object>