isDefinedType function

bool isDefinedType(
  1. GraphQLNamedType type
)

Returns true when type is a defined type, not one of the provided standard GraphQL types

Implementation

bool isDefinedType(GraphQLNamedType type) {
  return !isSpecifiedScalarType(type) && !isIntrospectionType(type);
}