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 Details

    • shouldMakeVariable

      boolean shouldMakeVariable(ExecutableNormalizedField executableNormalizedField, String argName, NormalizedInputValue normalizedInputValue)
      Return true if a variable should be made for this field argument
      Parameters:
      executableNormalizedField - the field in question
      argName - the argument on the field
      normalizedInputValue - the input value for that argument
      Returns:
      true if a variable should be made
    • shouldMakeVariable

      default boolean shouldMakeVariable(ExecutableNormalizedField executableNormalizedField, QueryAppliedDirective queryAppliedDirective, 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 question
      queryAppliedDirective - the query directive in question
      argName - the argument on the directive
      normalizedInputValue - the input value for that argument
      Returns:
      true if a variable should be made