Skip to content

Commit cda07e4

Browse files
committed
can drop additoinal argument
1 parent 1c2babb commit cda07e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/execution/collectFields.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function buildSelectionSetVisitor(
193193
continue;
194194
}
195195

196-
const newDeferUsage = getDeferUsage(selection, deferUsage);
196+
const newDeferUsage = getDeferUsage(selection);
197197

198198
if (!newDeferUsage) {
199199
selectionSetVisitor(
@@ -229,7 +229,7 @@ function buildSelectionSetVisitor(
229229
return;
230230
}
231231

232-
const newDeferUsage = getDeferUsage(selection, deferUsage);
232+
const newDeferUsage = getDeferUsage(selection);
233233

234234
const fragmentVariableSignatures = fragment.variableSignatures;
235235
let newFragmentVariableValues: VariableValues | undefined;
@@ -270,7 +270,6 @@ function buildSelectionSetVisitor(
270270
*/
271271
function getDeferUsage(
272272
node: FragmentSpreadNode | InlineFragmentNode,
273-
parentDeferUsage: DeferUsage | undefined,
274273
): DeferUsage | undefined {
275274
const defer = getDirectiveValues(
276275
GraphQLDeferDirective,
@@ -289,7 +288,7 @@ function buildSelectionSetVisitor(
289288

290289
return {
291290
label: typeof defer.label === 'string' ? defer.label : undefined,
292-
parentDeferUsage,
291+
parentDeferUsage: deferUsage,
293292
};
294293
}
295294

0 commit comments

Comments
 (0)