Leg cramps

Er

I’m 27 weeks now and sleep is elusive because of getting comfortable but the last two nights I’ve been woken out of a sound sleep with excruciating Charlie horses in my calves! Has anyone else dealt with this? I didn’t know that this was a pregnancy thing!