Skip to content

Commit

Permalink
FRMAT
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Dec 2, 2024
1 parent 534f5f1 commit 4c1de07
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/batch-execute/src/mergeRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,18 @@ function prefixRequest(
if (executionVariables) {
prefixedVariables = Object.create(null);
for (const variableName in executionVariables) {
prefixedVariables[prefix + variableName] = executionVariables[variableName];
prefixedVariables[prefix + variableName] =
executionVariables[variableName];
}
}

if (hasFragments) {
prefixedDocument = {
...prefixedDocument,
definitions: prefixedDocument.definitions.filter((def) => !isFragmentDefinition(def) || fragmentSpreadImpl[def.name.value]),
definitions: prefixedDocument.definitions.filter(
(def) =>
!isFragmentDefinition(def) || fragmentSpreadImpl[def.name.value],
),
};
}

Expand Down

0 comments on commit 4c1de07

Please sign in to comment.