We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f541f2c commit a80b84cCopy full SHA for a80b84c
src/pubsub.ts
@@ -84,7 +84,7 @@ export class SubscriptionManager {
84
constructor(options: { schema: GraphQLSchema, setupFunctions: {[subscriptionName: string]: Function} }){
85
this.pubsub = new FilteredPubSub();
86
this.schema = options.schema;
87
- this.setupFunctions = options.setupFunctions;
+ this.setupFunctions = options.setupFunctions || {};
88
this.subscriptions = {};
89
this.maxSubscriptionId = 0;
90
}
0 commit comments