Module

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

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class PothosSmartSubscriptionsPlugin
extends BasePlugin<Types, { cache?: SubscriptionCache<Types>; }>
import { PothosSmartSubscriptionsPlugin } from "https://dotland.deno.dev/x/pothos@release-1689883337/packages/plugin-smart-subscriptions/mod.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"]>)