printFields method
Implementation
String printFields(GraphQLObjectType type) {
final fields = type.fields.mapIndexed(
(i, f) =>
printDescription(f.description, ' ', i == 0) +
' ' +
f.name +
printArgs(f.inputs, ' ') +
': ' +
printTypeReference(f.type) +
printDirectives(f),
);
return printBlock(fields);
}