Getting prescribed morning sickness medication

Lily

So for the past week I’ve had terrible nausea. I hadn’t eaten a full meal in that period of time as well. Well the past couple days I’ve had really bad period of lightheadedness to the point where I blacked out. So I went to the doctor she thinks I’m not eating or drinking enough water. So she prescribed me an anti nausea medication. Anyone ever been in a similar situation??