Package graphql.validation.rules
Class VariablesTypesMatcher
java.lang.Object
graphql.validation.rules.VariablesTypesMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
doesVariableTypesMatch
(GraphQLType varType, Value<?> varDefaultValue, GraphQLType locationType, Value<?> locationDefaultValue) This method and variable naming was inspired from the reference graphql-js implementationeffectiveType
(GraphQLType variableType, Value<?> defaultValue)
-
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 typevarDefaultValue
- the default value for the variablelocationType
- the location type where the variable was encounteredlocationDefaultValue
- the default value for that location- Returns:
- true if the variable matches ok
-
effectiveType
-