Gestational diabetes

Leslie

I’ve read a comment saying eating too much food/sweets causes GD in pregnancy? Ever since i got pregnant and having hypermesis, i’ve been addicted to sweets. What cause GD or does it just happen?