Stomach flu in babies

How long did the stomach bug last in your babies ,? It’s been 4 days for my 7month old and she still isn’t holding down much milk , she will wake up in middle of night in her sleep projectile throwing up. Is it still too soon for her stomach to be consuming milk?