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

x/pothos/packages/core/mod.ts>SubscribeHooks

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
interface SubscribeHooks
Deprecated
Deprecated

This will be replaced by by wrapResolve, wrapSubscribe, and wrapResolveType

import { type SubscribeHooks } from "https://deno.land/x/pothos@release-1670043728/packages/core/mod.ts";

Properties

optional
overwriteSubscribe: (
parent: unknown,
args: { },
context: Types["Context"],
originalResolver: GraphQLFieldResolver<unknown, Types["Context"]>,
) => unknown
optional
onSubscribe: (value: unknown) => MaybePromise<void>
optional
onValue: (child: unknown) => MaybePromise<T | null>