Module

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

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

Called with the isTypeOf for each Object type

Parameters

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

Returns

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