readGraphQlFiles method
read asset files
Implementation
Future<List<DocumentNode>> readGraphQlFiles(
BuildStep buildStep,
String schema,
) async {
final schemaAssetStream = buildStep.findAssets(Glob(schema));
return await schemaAssetStream
.asyncMap(
(asset) async => parseString(
await buildStep.readAsString(asset),
url: asset.path,
),
)
.toList();
}