Skip to content

Commit 35f5d07

Browse files
committed
Clarify that variables are always allowed when part of a custom scalar literal value
Fixes graphql#1011
1 parent 0ab3d4b commit 35f5d07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/Section 5 -- Validation.md

+1
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,7 @@ variable.
18731873

18741874
IsVariableUsageAllowed(variableDefinition, variableUsage):
18751875

1876+
- If {variableUsage} is nested in a custom scalar literal value, return {true}.
18761877
- Let {variableType} be the expected type of {variableDefinition}.
18771878
- Let {locationType} be the expected type of the {Argument}, {ObjectField}, or
18781879
{ListValue} entry where {variableUsage} is located.

0 commit comments

Comments
 (0)