File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -83,22 +83,19 @@ export function subscribe(
83
83
subscribeFieldResolver
84
84
) {
85
85
// Extract arguments from object args if provided.
86
- const args = arguments . length === 1 ? argsOrSchema : undefined ;
87
- const schema = args ? args . schema : argsOrSchema ;
88
-
89
- return args ?
86
+ return arguments . length === 1 ?
90
87
subscribeImpl (
91
- schema ,
92
- args . document ,
93
- args . rootValue ,
94
- args . contextValue ,
95
- args . variableValues ,
96
- args . operationName ,
97
- args . fieldResolver ,
98
- args . subscribeFieldResolver
88
+ argsOrSchema . schema ,
89
+ argsOrSchema . document ,
90
+ argsOrSchema . rootValue ,
91
+ argsOrSchema . contextValue ,
92
+ argsOrSchema . variableValues ,
93
+ argsOrSchema . operationName ,
94
+ argsOrSchema . fieldResolver ,
95
+ argsOrSchema . subscribeFieldResolver
99
96
) :
100
97
subscribeImpl (
101
- schema ,
98
+ argsOrSchema ,
102
99
document ,
103
100
rootValue ,
104
101
contextValue ,
You can’t perform that action at this time.
0 commit comments