Wa'alaikumassalam! Hmm, GDM medication memang boleh cause loose stools/diarrhea for some people, especially if it's metformin, a few of my mum friends yang kena GDM mention this side effect, tapi it varies la, depending on the dosage and individual body. Best thing is to mention it to your doctor or gynae sebab they might adjust the dosage or suggest something else yang lebih suitable for your body, and also to make sure the looseness isn't affecting your nutrition during pregnancy. Jangan worried la, doctors are used to this!