Class VariablesTypesMatcher


  • public class VariablesTypesMatcher
    extends java.lang.Object
    • Constructor Detail

      • VariablesTypesMatcher

        public VariablesTypesMatcher()
    • Method Detail

      • 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