Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pothos/packages/core/mod.ts>BasePlugin#wrapResolve

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Latest
method BasePlugin.prototype.wrapResolve
Re-export
import { BasePlugin } from "https://deno.land/x/pothos@release-1719071157/packages/core/mod.ts";

Called with the resolver for each field in the schema

Parameters

resolver: GraphQLFieldResolver<unknown, Types["Context"], object>
  • the resolve function
fieldConfig: PothosOutputFieldConfig<Types>
  • the config object for the field associated with this resolve function

Returns

GraphQLFieldResolver<unknown, Types["Context"], object>
  • Either the original, or a new resolver function to use for this field