Boil all eggs for about 10 minutes. Meanwhile, cut the onion into small cubes. Then quench the boiled eggs, let them cool and cut into small pieces. Finally, mix the eggs with the diced onion and mayonnaise in a bowl. Season to taste with salt and pepper as required.