Blood in stool

Tati

Hi my 1 month old baby had blood and mucus in his stool Took it in and I was told he is allergic to milk and soy they switched him over to a different formula but now he has not had a stool.

And I am pretty upset that I probably won’t be able to breast-feed him and if I do I have to not eat anything dairy or with soy but everything is made out of soy or somehow has dairy in it anyone have the similar issue?