public class VariablesTypesMatcher
extends java.lang.Object
| Constructor and Description |
|---|
VariablesTypesMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesVariableTypesMatch(GraphQLType varType,
Value<?> varDefaultValue,
GraphQLType locationType,
Value<?> locationDefaultValue)
This method and variable naming was inspired from the reference graphql-js implementation
|
GraphQLType |
effectiveType(GraphQLType variableType,
Value<?> defaultValue) |
public boolean doesVariableTypesMatch(GraphQLType varType, Value<?> varDefaultValue, GraphQLType locationType, Value<?> locationDefaultValue)
varType - the variable typevarDefaultValue - the default value for the variablelocationType - the location type where the variable was encounteredlocationDefaultValue - the default value for that locationpublic GraphQLType effectiveType(GraphQLType variableType, Value<?> defaultValue)