You should compost them before dumping them in the soil. If theThe food waste is not already degraded, and bacteria/bugs in the soil will try to degrade themdegraded some while releasing a bad smell. To degrade the scraps, bacteria/microbes initially suck up nutrients from the soil, thereby depleting it in the short term. Also, it doesn't look good and requiresrequire a long time to degrade too. I should warn you, there will be plenty of bugs if you just dump the food to the soil.
Learn how to compost. You, you can search this site forsearch up this site about composting. I believe there are plenty of questionsquestion about composting that you can find under compost.