printInputObject method

String printInputObject(
  1. GraphQLInputObjectType type
)

Implementation

String printInputObject(GraphQLInputObjectType type) {
  final fields = type.fields.mapIndexed(
    (i, f) =>
        printDescription(f.description, '  ', i == 0) +
        '  ' +
        printInputValue(f),
  );
  return printDescription(type.description) +
      'input ${printTypeName(type)}${printDirectives(type)}' +
      printBlock(fields);
}