Clean and cut the mushrooms and onion into bite-sized pieces.
Add cooking oil to a pan and heat over medium heat.
Add the onion and mushrooms, then stir-fry.
Add the rice and stir-fry together until well mixed.
Season with salt and pepper.
Add the egg and stir until cooked through.
Serve in a bowl and garnish with chopped green onions.