printFields method

String printFields(
  1. GraphQLObjectType type
)

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);
}