Skip to content

Type Alias: TriggerTransform

ts
type TriggerTransform = (trigger, options) => string;

Defined in: packages/graphql-pubsub/src/interfaces.ts:39

A function that maps a trigger name (plus subscription options) to the Redis channel key that will actually be subscribed to.

Parameters

ParameterType
triggerstring
optionsSubscriptionOptions

Returns

string

Released under the MIT License.