UNPKG

@graphile/pg-pubsub

Version:

Subscriptions plugin for PostGraphile using PostgreSQL's LISTEN/NOTIFY

17 lines (16 loc) 476 B
import { PubSub } from "graphql-subscriptions"; import { PostGraphilePlugin } from "postgraphile"; declare module "postgraphile" { interface PostGraphileOptions { simpleSubscriptions?: boolean; subscriptionAuthorizationFunction?: string; subscriptionEventEmitterMaxListeners?: number; } } declare module "graphile-build" { interface Options { pubsub: PubSub; } } declare const plugin: PostGraphilePlugin; export default plugin;