Egg allergy

Does anyone know if eggs are like milk and it takes 2 weeks to get out of your milk and then 2 weeks to far out of babies system? I am dairy free and I was egg free but I tried eggs one day just to see how my baby was going so react and it’s been awful! Really bad gas pains, crying all the time!