what can I do to treat my 5year old daughter vomiting and shes eating a little bit and drink?

Hello doctor!my 5year old daughter is laying in bed for two days.she s vomitting after she ate and drank.but she has no I don’t really know what to do.should I take her to see a doctor or wait?