Boil the spaghetti noodles in salted water.
Cut the cherry tomatoes in half.
Slice the onion thinly.
Heat olive oil in a pan and sauté the onion.
Add the cherry tomatoes and cook together.
Add the boiled noodles to the pan and mix with the ingredients.
Season with salt and pepper.
Turn off the heat and add cheese to melt with residual heat.
Serve on a plate and top with cheese and basil.