Fry the onion in some oil until golden brown. Add garlic, fry for two minutes and add the spices. Fry well before adding the tomato purée, salt and water. Cook till gravy begins to thicken then add the coconut and when dissolved adds the peas and eggs. Cook for another 10 minutes.