Package graphql.normalized
Interface VariablePredicate
-
@PublicSpi public interface VariablePredicate
This predicate indicates whether a variable should be made for this field argument OR whether it will be compiled into a graphql AST literal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanshouldMakeVariable(ExecutableNormalizedField executableNormalizedField, QueryAppliedDirective queryAppliedDirective, java.lang.String argName, NormalizedInputValue normalizedInputValue)Return true if a variable should be made for this query directive argument on the specified fieldbooleanshouldMakeVariable(ExecutableNormalizedField executableNormalizedField, java.lang.String argName, NormalizedInputValue normalizedInputValue)Return true if a variable should be made for this field argument
-
-
-
Method Detail
-
shouldMakeVariable
boolean shouldMakeVariable(ExecutableNormalizedField executableNormalizedField, java.lang.String argName, NormalizedInputValue normalizedInputValue)
Return true if a variable should be made for this field argument- Parameters:
executableNormalizedField- the field in questionargName- the argument on the fieldnormalizedInputValue- the input value for that argument- Returns:
- true if a variable should be made
-
shouldMakeVariable
default boolean shouldMakeVariable(ExecutableNormalizedField executableNormalizedField, QueryAppliedDirective queryAppliedDirective, java.lang.String argName, NormalizedInputValue normalizedInputValue)
Return true if a variable should be made for this query directive argument on the specified field- Parameters:
executableNormalizedField- the field in questionqueryAppliedDirective- the query directive in questionargName- the argument on the directivenormalizedInputValue- the input value for that argument- Returns:
- true if a variable should be made
-
-