Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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