Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/plugin-smart-subscriptions/index.ts>PothosSmartSubscriptionsPlugin

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Latest
class PothosSmartSubscriptionsPlugin
extends BasePlugin<Types, { cache?: SubscriptionCache<Types>; }>
import { PothosSmartSubscriptionsPlugin } from "https://deno.land/x/pothos@release-1730496474/packages/plugin-smart-subscriptions/index.ts";

Constructors

new
PothosSmartSubscriptionsPlugin(buildCache: BuildCache<Types>)

Properties

debounceDelay: number | null
smartSubscriptionsToQueryField: Map<string, Extract<PothosOutputFieldConfig<Types>, { kind: "Query"; }>>
subscribe: (
name: string,
context: Types["Context"],
cb: (err: unknown, data: unknown) => void,
) => Promise<void> | void
unsubscribe: (name: string, context: Types["Context"]) => Promise<void> | void

Methods

createRequestData(context: Types["Context"])
wrapResolve(resolve: GraphQLFieldResolver<unknown, Types["Context"]>, field: PothosOutputFieldConfig<Types>): GraphQLFieldResolver<unknown, Types["Context"]>
wrapResolveType(resolveType: GraphQLTypeResolver<unknown, Types["Context"]>)