Class VariablesTypesMatcher

java.lang.Object
graphql.validation.rules.VariablesTypesMatcher

public class VariablesTypesMatcher extends Object
  • Constructor Details

    • VariablesTypesMatcher

      public VariablesTypesMatcher()
  • Method Details

    • doesVariableTypesMatch

      public boolean doesVariableTypesMatch(GraphQLType varType, Value<?> varDefaultValue, GraphQLType locationType, Value<?> locationDefaultValue)
      This method and variable naming was inspired from the reference graphql-js implementation
      Parameters:
      varType - the variable type
      varDefaultValue - the default value for the variable
      locationType - the location type where the variable was encountered
      locationDefaultValue - the default value for that location
      Returns:
      true if the variable matches ok
    • effectiveType

      public GraphQLType effectiveType(GraphQLType variableType, Value<?> defaultValue)