Stools?

I am 39 weeks and started to get very gassy. I feel air all through my stomach and when I try to use the bathroom I just have mucus come out. Has anyone had this happen?