Skip to content

Commit

Permalink
feat(subscriptions): add context to subscription delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrandwijk committed Jan 12, 2018
1 parent 1b8f8ef commit aa4c058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export class Binding<TQueryMap extends object = QueryMap, TSubscriptionMap exten
public async delegateSubscription(
fieldName: string,
args?: { [key: string]: any },
context?: { [key: string]: any },
infoOrQuery?: GraphQLResolveInfo | string
): Promise<AsyncIterator<any>> {
this.before()
Expand All @@ -87,7 +88,7 @@ export class Binding<TQueryMap extends object = QueryMap, TSubscriptionMap exten
'subscription',
fieldName,
args || {},
{},
context || {},
info
)

Expand Down

0 comments on commit aa4c058

Please sign in to comment.