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

x/pothos/packages/core/index.ts>BasePlugin#wrapResolveType

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

Called with the resolveType for each Interface or Union type

Parameters

resolveType: GraphQLTypeResolver<unknown, Types["Context"]>
  • the resolveType function
  • the config object for the Interface or Union type

Returns

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