convertGraphQLToDart function

String convertGraphQLToDart(
  1. String input
)

Convert from GraphQL to Dart primitive

Implementation

String convertGraphQLToDart(String input) {
  if (input == 'Int') {
    return 'int';
  }
  if (input == 'Boolean') {
    return 'bool';
  }

  return input;
}