Skip to content

Commit

Permalink
Accept normal object as 'variableValues' arg of subscribe functions
Browse files Browse the repository at this point in the history
Duplicate graphql#1937 but for 'subscribe' and 'createSourceEventStream'
functions
  • Loading branch information
IvanGoncharov committed Jun 1, 2019
1 parent 09fcb11 commit 591c7a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/subscription/subscribe.js
Expand Up @@ -57,7 +57,7 @@ declare function subscribe(
document: DocumentNode,
rootValue?: mixed,
contextValue?: mixed,
variableValues?: ?ObjMap<mixed>,
variableValues?: ?{ [variable: string]: mixed },
operationName?: ?string,
fieldResolver?: ?GraphQLFieldResolver<any, any>,
subscribeFieldResolver?: ?GraphQLFieldResolver<any, any>,
Expand All @@ -70,7 +70,7 @@ declare function subscribe(
document: DocumentNode,
rootValue?: mixed,
contextValue?: mixed,
variableValues?: ?ObjMap<mixed>,
variableValues?: ?{ [variable: string]: mixed },
operationName?: ?string,
fieldResolver?: ?GraphQLFieldResolver<any, any>,
subscribeFieldResolver?: ?GraphQLFieldResolver<any, any>,
Expand Down Expand Up @@ -198,7 +198,7 @@ export function createSourceEventStream(
document: DocumentNode,
rootValue?: mixed,
contextValue?: mixed,
variableValues?: ObjMap<mixed>,
variableValues?: ?{ [variable: string]: mixed },
operationName?: ?string,
fieldResolver?: ?GraphQLFieldResolver<any, any>,
): Promise<AsyncIterable<mixed> | ExecutionResult> {
Expand Down

0 comments on commit 591c7a7

Please sign in to comment.