Cook the rice first. Choose your method - I pressure cooked in an instant Pot.
Saute cumin seeds, garlic, and chopped onions over medium heat.
Add the cooked basmati rice and mix well. Continue to cook for a few more minutes until heated through.