Skip to content

Commit e09e6b6

Browse files
committed
Extra comment
1 parent 883ba63 commit e09e6b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/graphql/normalized/VariableAccumulator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public VariableAccumulator(@Nullable VariablePredicate variablePredicate) {
3030
}
3131

3232
public boolean shouldMakeVariable(ExecutableNormalizedField executableNormalizedField, QueryAppliedDirective queryAppliedDirective, String argName, NormalizedInputValue normalizedInputValue) {
33+
// when a variable is used on the argument to a query directive then the queryAppliedDirective will be nonnull.
34+
// otherwise it must be a field argument
3335
if (queryAppliedDirective != null) {
3436
return variablePredicate != null && variablePredicate.shouldMakeVariable(executableNormalizedField, queryAppliedDirective, argName, normalizedInputValue);
3537
} else {

0 commit comments

Comments
 (0)