Can Anyone explain what this is?

I’m 37weeks and 2 days pregnant. Recently, I became extremely nauseous (to the point of almost throwing up, but I was able to hold it back) and saliva kept building up in my mouth. What causes that? And what helps with that? That was horrible 😭