In a mixer, grind the coconut, coriander, mint, some salt, sugar, turmeric, pepper corns, cumin, half the onions & green chilies into a paste, adding water a little at a time till you get a smooth paste.