Package graphql.validation.rules
Class VariablesTypesMatcher
- java.lang.Object
-
- graphql.validation.rules.VariablesTypesMatcher
-
public class VariablesTypesMatcher extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VariablesTypesMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesVariableTypesMatch(GraphQLType varType, Value<?> varDefaultValue, GraphQLType locationType, Value<?> locationDefaultValue)
This method and variable naming was inspired from the reference graphql-js implementationGraphQLType
effectiveType(GraphQLType variableType, Value<?> defaultValue)
-
-
-
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 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
public GraphQLType effectiveType(GraphQLType variableType, Value<?> defaultValue)
-
-