import { BasePlugin } from "https://deno.land/x/pothos@release-1713397530/packages/core/mod.ts";
Called with the isTypeOf for each Object type
Parameters
isTypeOf: GraphQLIsTypeOfFn<unknown, Types["Context"]> | undefined
- the resolveType function
typeConfig: PothosObjectTypeConfig
- 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