gestational diabetes

How to prevent from getting gestational diabetes? My glucose test @ 6months pregnant, will be next week and im afraid im diagnose with one.