Bring water to a boil, add rice, onions and garlic and mix until well combined, cooking for one minute.