Peel and cut sweet potatoes into small pieces (1x1cm). Cook them in salted water.
In the meantime, chop onions and slice mushrooms. First cut the mushroom in half and then slice each half. If mushrooms are small, there's no need for you to cut them in half first, just slice them.
Once potatoes are cooked, strain them and mash them. You can mash them with a fork or with a strong whisk (yup, that works too) or with a potato masher. I don't blend them because I like some pieces of potatoes here and there, but you can also blend them if you want a completely smooth dough.
Then add flour and salt to mashed potatoes and knead into a nice soft ball of dough. It should not be sticking to your fingers too much and should hold shape.
Flour your countertop and place a ball of dough onto it. Cut the ball into 4 pieces. Now take one piece and place it on the floured surface and roll it out into a long snake. Cut it into 1.5 cm wide pieces. Repeat with the other 3 pieces of dough.
Prepare your sauce. Sautée onions in a large pan. Add mushrooms and sautée until mushrooms soften and let out a ton of water. Then sautée a bit more so some water evaporates. Add spices and coconut milk. If you feel like the sauce is too thick, add some water.
Cook gnocchi in boiling salted water for about 3 minutes or until they come to the surface of the water.
Add cooked gnocchi to the sauce and mix. Or place them on a plate and add sauce on top of them there. Garnish with some chopped parsley and serve.