import { BasePlugin } from "https://deno.land/x/pothos@release-1713397530/packages/core/mod.ts";
Called with the subscribe for each field on the Subscription type
Parameters
subscribe: GraphQLFieldResolver<unknown, Types["Context"], object> | undefined
- the subscribe function
fieldConfig: PothosOutputFieldConfig<Types>
- the config object for the field associated with this subscribe function
Returns
GraphQLFieldResolver<unknown, Types["Context"], object> | undefined
- Either the original, or a new subscribe function to use for this field