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