import { PothosSmartSubscriptionsPlugin } from "https://deno.land/x/pothos@release-1725301526/packages/plugin-smart-subscriptions/mod.ts";
Constructors
new
PothosSmartSubscriptionsPlugin(buildCache: BuildCache<Types>)Type Parameters
Types extends SchemaTypes
Properties
smartSubscriptionsToQueryField: Map<string, Extract<PothosOutputFieldConfig<Types>, { kind: "Query"; }>>
unsubscribe: (name: string, context: Types["Context"]) => Promise<void> | void
Methods
createRequestData(context: Types["Context"])
onOutputFieldConfig(fieldConfig: PothosOutputFieldConfig<Types>)
wrapResolve(resolve: GraphQLFieldResolver<unknown, Types["Context"]>, field: PothosOutputFieldConfig<Types>): GraphQLFieldResolver<unknown, Types["Context"]>
wrapResolveType(resolveType: GraphQLTypeResolver<unknown, Types["Context"]>)