isSpecifiedScalarType function

bool isSpecifiedScalarType(
  1. GraphQLType type
)

Whether type is one of the default GraphQLScalarType types

Implementation

bool isSpecifiedScalarType(GraphQLType type) {
  return specifiedScalarNames.contains(type.name);
}