Instead of pasta water, bring a sufficient amount of stock to the boil. Cook the spaghetti and chard together.
Peel and finely chop the garlic, mix with oil.
Drain the pasta and vegetables and collect 2 tablespoons of pasta water. Mix the pasta with the oil and garlic mixture and 2 tablespoons of pasta water. Rub the parmesan on top.