Skip to main content
Module

x/pothos/packages/core/index.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-1713397530/packages/core/index.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>