First time pregnancy

I am pregnant for the first time and last night I had projectile vomiting and diarrhea any tips on how to help with this?