fromNode static method
Implementation
static GraphQLType fromNode(
TypeNode astNode, [
ResolveType? getType,
]) {
if (astNode is NamedTypeNode) {
return NamedType(astNode, getType);
}
if (astNode is ListTypeNode) {
return ListType(astNode, getType);
}
throw ArgumentError("$astNode is unsupported");
}