toSdl method

String? toSdl()

Implementation

String? toSdl() {
  final List<String> list = [];
  for (final GraphQLArg arg in args) {
    final String? sdl = arg.toSdl();
    if (sdl != null) {
      list.add(sdl);
    }
  }
  if (list.isEmpty) return null;

  return '(${list.join(', ')})';
}