Steps
1. Cook the spaghetti in salted boiling water until al dente, then drain, reserving a little pasta water.
2. In a bowl, beat the egg with grated Parmesan cheese and soy sauce until smooth.
3. Heat olive oil in a pan over medium heat, add minced garlic and sauté briefly until fragrant.
4. Add the hot cooked pasta to the pan and toss quickly.
5. Remove the pan from heat and immediately pour the egg and cheese mixture over the pasta, tossing rapidly to create a creamy sauce without scrambling the eggs.
6. If the sauce is too thick, add a little reserved pasta water to loosen it.
7. Season with salt and black pepper to taste and serve immediately.