import { PothosComplexityPlugin } from "https://deno.land/x/pothos@release-1695354039/packages/plugin-complexity/index.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>