Peel and prepare the shrimp.
Wash the soybean sprouts thoroughly.
Slice the onion and green onion thinly.
Heat oil in a pan and stir-fry the shrimp.
Add the onion, green onion, and soybean sprouts, and stir-fry.
Season with soy sauce and minced garlic.
Cover with a lid and cook for about 3 minutes.
Transfer to a plate and serve.