code: protected static function extendArgs(array $args) : array
      {
          return Utils::keyValMap(
              $args,
              static function (FieldArgument $arg) {
                  return $arg->name;
              },
              static function (FieldArgument $arg) {
                  $def = [
                      'type'        => static::extendType($arg->getType()),
                      'description' => $arg->description,
                      'astNode'     => $arg->astNode,
                  ];
  
                  if ($arg->defaultValueExists()) {
                      $def['defaultValue'] = $arg->defaultValue;
                  }
  
                  return $def;
              }
          );
      }
docs: @param FieldArgument[] $args
  
  @return mixed[]