graphql-lambda-subscriptions / SubscribePseudoIterable
Name | Type |
---|---|
T |
extends PubSubEvent |
TSubscribeArgs |
extends SubscribeArgs = SubscribeArgs |
▸ SubscribePseudoIterable(...args
): AsyncGenerator
<T
, never
, unknown
>
Name | Type |
---|---|
...args |
TSubscribeArgs |
AsyncGenerator
<T
, never
, unknown
>
• Optional
filter: SubscriptionFilter
<TSubscribeArgs
, T
["payload"
]>
• Optional
onAfterSubscribe: (...args
: TSubscribeArgs
) => MaybePromise
<void
>
▸ (...args
): MaybePromise
<void
>
Name | Type |
---|---|
...args |
TSubscribeArgs |
MaybePromise
<void
>
• Optional
onComplete: (...args
: TSubscribeArgs
) => MaybePromise
<void
>
▸ (...args
): MaybePromise
<void
>
Name | Type |
---|---|
...args |
TSubscribeArgs |
MaybePromise
<void
>
• Optional
onSubscribe: (...args
: TSubscribeArgs
) => MaybePromise
<void
| GraphQLError
[]>
▸ (...args
): MaybePromise
<void
| GraphQLError
[]>
Name | Type |
---|---|
...args |
TSubscribeArgs |
MaybePromise
<void
| GraphQLError
[]>
• topic: string