What can i take for constipation while pregnant ?

Im 10 weeks and i cant get it out! Its hurting my stomach what can i do or take to get it out? I had some ice cream which is hitting me HARD right now 😭