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

x/oak_graphql/deps.ts>PubSub#subscribe

A simple graphql middleware for oak deno framework.
Latest
method PubSub.prototype.subscribe
import { PubSub } from "https://deno.land/x/oak_graphql@0.6.4/deps.ts";

Parameters

triggerName: string
onMessage: (...args: any[]) => void

Returns

Promise<number>