isLeafType function

bool isLeafType(
  1. GraphQLType? type
)

Implementation

bool isLeafType(GraphQLType? type) =>
    type is GraphQLEnumType || type is GraphQLScalarType;