Midnight nausea/hunger wake ups!

Erykah • I love myself some pecans 😂😂
When I go to sleep I usually wake up in the middle of the night starving out of my mind. I am 31 weeks pregnant. I don't know what to do. I keep a jar of water beside me but it no longer works. Does anyone else have the similar problem and if you do what do you do to solve it?