convertTypeOrNull function

GraphQLType<Object?, Object?>? convertTypeOrNull(
  1. TypeNode node,
  2. Map<String, GraphQLType> customTypes
)

Implementation

GraphQLType<Object?, Object?>? convertTypeOrNull(
  TypeNode node,
  Map<String, GraphQLType> customTypes,
) {
  try {
    return convertType(node, customTypes);
  } catch (_) {
    return null;
  }
}