How does the hospital treat hyperemesis gravidarum staying over night or a few days?

Meagan • I am happily married to my husband.
Someone told me they won't give you food or anything to drink. Something about they will make you starve to treat the hyperemesis gravidarum. I don't know how true this is but I've been vomiting multiples of times after taking Reglan and b6 and I can't seem to hold food or any liquids down. I'm also scared that the cord to the baby to the placenta is going to break lose or something since I heard some girl die from this. This is my first pregnancy and just want everything to go smoothly!