Step 1: Cook the Pasta - Start by bringing a large pot of salted water to a boil. Add the spaghetti and cook according to the package instructions until it is al dente. Reserve about 1 cup of pasta water before draining the pasta.
Step 2: Sauté the Mushrooms - While the pasta is cooking, heat the olive oil in a large skillet over medium heat. Add the minced garlic and sauté for about 30 seconds until fragrant. Then, add the sliced mushrooms to the skillet. Cook for about 5-7 minutes, stirring occasionally, until the mushrooms are golden brown and tender. Season with salt and pepper to taste.
Step 3: Prepare the Sauce - In a mixing bowl, whisk together the eggs, heavy cream, and grated Parmesan cheese until smooth. Season it with a little salt and pepper as well.
Step 4: Combine Pasta and Sauce - Once the pasta is cooked and drained, add it directly to the skillet with the sautéed mushrooms. Toss them together over low heat, allowing the flavors to meld. Remove the skillet from heat before adding the egg and cream mixture to prevent the eggs from scrambling.
Step 5: Create the Creamy Sauce - Quickly pour the egg and cream mixture over the pasta, stirring vigorously to combine. If the sauce seems too thick, gradually add a bit of the reserved pasta water until you reach your desired consistency.
