Cut the tomatoes and onions into bite-sized pieces.
Mince the garlic.
Crack the eggs into a bowl and beat them.
Cook the spaghetti noodles.
Heat olive oil in a pan, then sauté the garlic and onions.
Add the tomatoes and cook until softened.
Add the cooked pasta noodles into the pan and mix well.
Pour in the beaten eggs and stir gently until cooked through.
Season with salt and pepper to taste.