Options for creating a GraphQL Subscription.
ResolverOptions
<Subscription
<SchemaToSilk
<TSchemaIO
, TOutput
>, InputSchemaToSilk
<TSchemaIO
, TInput
>, TValue
>>.GraphQLFieldOptions
• TSchemaIO extends AbstractSchemaIO
• TOutput extends TSchemaIO
[0
]
• TInput extends InputSchema
<TSchemaIO
[0
]> = undefined
• TValue = InferSchemaO
<TOutput
, TSchemaIO
>
optional
deprecationReason:Maybe
<string
>
GraphQLFieldOptions
.deprecationReason
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:535
optional
description:Maybe
<string
>
GraphQLFieldOptions
.description
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:530
optional
extensions:Maybe
<Readonly
<GraphQLFieldExtensions
<any
,any
,any
>>>
GraphQLFieldOptions
.extensions
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:536
optional
input:TInput
packages/core/src/resolver/types.ts:276
optional
middlewares:Middleware
<Subscription
<SchemaToSilk
<TSchemaIO
,TOutput
>,InputSchemaToSilk
<TSchemaIO
,TInput
>,TValue
>>[]
packages/core/src/resolver/types.ts:65
optional
resolve: (value
,input
) =>MayPromise
<InferPropertyType
<TOutput
,TSchemaIO
[2
]>>
• value: TValue
• input: InferInputO
<TInput
, TSchemaIO
>
MayPromise
<InferPropertyType
<TOutput
, TSchemaIO
[2
]>>
packages/core/src/resolver/types.ts:280
subscribe: (
input
) =>MayPromise
<AsyncIterator
<TValue
,any
,undefined
>>
• input: InferInputO
<TInput
, TSchemaIO
>
MayPromise
<AsyncIterator
<TValue
, any
, undefined
>>
packages/core/src/resolver/types.ts:277