X-ray while pregnant....

Alexis
X-ray at 27 weeks....
Has anyone had a X-ray during pregnancy...? Did it effect your baby? How did it effect your pregnancy? I'm really scared.... they had to do an X-ray due to all the kidney issues and me having been sick for over a month. I'm so scared maybe I should have said no... and just dealt with the pain and being bed bound and end up homeless...