readSchema method
Reads and concatenates the contents of all schema assets into a single GraphQL document string.
Implementation
Future<String> readSchema(BuildStep buildStep) async {
final contents =
await Future.wait(assets.map((asset) => buildStep.readAsString(asset)));
return contents.join('\n');
}