getNamedType function

GraphQLNamedType getNamedType(
  1. GraphQLType type
)

Implementation

GraphQLNamedType getNamedType(GraphQLType type) {
  GraphQLType _type = type;
  while (_type is GraphQLWrapperType) {
    _type = (_type as GraphQLWrapperType).ofType;
  }
  return _type as GraphQLNamedType;
}