fetchAllTypes function
Implementation
List<GraphQLType?> fetchAllTypes(
GraphQLSchema schema, List<GraphQLType?> specifiedTypes) {
var data = <GraphQLType?>{}
..add(schema.queryType)
..addAll(specifiedTypes);
if (schema.mutationType != null) {
data.add(schema.mutationType);
}
if (schema.subscriptionType != null) {
data.add(schema.subscriptionType);
}
return CollectTypes(data).types.toList();
}