I'm 34 weeks pregnant and everytime I use the bathroom, I wipe this yellow-green mucus like discharge. What can it be?

Please ask your OB. You may have a bacterial vaginosis and you want to make sure you do not have any premature rupture of membranes with meconium stained fluid( hopefully it should not be that) please have your OB check you.