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#wrapIsTypeOf

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Latest
method BasePlugin.prototype.wrapIsTypeOf
Re-export
import { BasePlugin } from "https://deno.land/x/pothos@release-1719071157/packages/core/mod.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