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