Interface: Subscription<TOutput, TInput, TValue>

Operation or Field for resolver.

Extends

Type Parameters

TOutput extends GraphQLSilk

TInput extends InputSchema<GraphQLSilk> = undefined

TValue = InferOutput<TOutput>

Properties

deprecationReason?

optional deprecationReason: Maybe<string>

Inherited from

FieldOrOperation.deprecationReason

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:535


description?

optional description: Maybe<string>

Inherited from

FieldOrOperation.description

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:530


extensions?

optional extensions: Maybe<Readonly<GraphQLFieldExtensions<any, any, any>>>

Inherited from

FieldOrOperation.extensions

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:536


input

input: TInput

Inherited from

FieldOrOperation.input

Defined in

packages/core/src/resolver/types.ts:104


output

output: TOutput

Inherited from

FieldOrOperation.output

Defined in

packages/core/src/resolver/types.ts:105


resolve()

resolve: (value, input) => Promise<InferOutput<TOutput>>

Parameters

value: TValue

input: InferInputI<TInput, GraphQLSilkIO>

Returns

Promise<InferOutput<TOutput>>

Overrides

FieldOrOperation.resolve

Defined in

packages/core/src/resolver/types.ts:291


subscribe()

subscribe: (input, options?) => MayPromise<AsyncIterator<TValue, any, undefined>>

Parameters

input: InferInputI<TInput, GraphQLSilkIO>

options?: ResolvingOptions

Returns

MayPromise<AsyncIterator<TValue, any, undefined>>

Overrides

FieldOrOperation.subscribe

Defined in

packages/core/src/resolver/types.ts:295


type

type: "subscription"

Inherited from

FieldOrOperation.type

Defined in

packages/core/src/resolver/types.ts:103