It is generally best not to eat moldy food, which may contain certain harmful bacteria and toxins. In addition, some foods may contain aflatoxin, which is highly carcinogenic.
Tomatoes are rich in nutrition and unique in flavor. Has effects in reducing weight, relieving fatigue, stimulating appetite, promoting protein digestion, and relieving abdominal distension and dyspepsia.
Don't eat immature tomatoes. Green tomato contains alkaloid glycoside (solanine), which is a needle-like crystal, very stable to alkalinity, but can be hydrolyzed by acid.
Therefore, immature green tomatoes often feel uncomfortable, from bitter taste in the mouth to poisoning in severe cases. Especially when the green tomato begins to rot, its solanine will be destroyed. When green tomatoes turn red, they contain no solanine.
Baidu encyclopedia-tomato