Skip to content

Commit e777124

Browse files
committed
Add fragment variables to parseLiteral
1 parent e614f8f commit e777124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities/valueFromAST.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function valueFromAST(
167167
// no value is returned.
168168
let result;
169169
try {
170-
result = type.parseLiteral(valueNode, variables);
170+
result = type.parseLiteral(valueNode, fragmentVariables ? {...variables, ...fragmentVariables} : variables);
171171
} catch (_error) {
172172
return; // Invalid: intentionally return no value.
173173
}

0 commit comments

Comments
 (0)