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

x/pothos/packages/plugin-smart-subscriptions/types.ts>SmartSubscriptionOptions

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
interface SmartSubscriptionOptions
import { type SmartSubscriptionOptions } from "https://deno.land/x/pothos@release-1690733553/packages/plugin-smart-subscriptions/types.ts";

Type Parameters

Context extends object

Properties

optional
debounceDelay: number | null
subscribe: (
name: string,
context: Context,
cb: (err: unknown, data?: unknown) => void,
) => Promise<void> | void
unsubscribe: (name: string, context: Context) => Promise<void> | void