TMI...pooping issues

So...I have a really embarrassing question. I'm 7 weeks pregnant and I have been so constipated...well today I had really bad gas like pains and thought I might have to go...but only mucous came out?! And it freaked me out....what could that mean?