Confused about cm

I’m still confused about what cervical mucus is. It is the same thing as when you get wet before sex? How is it different from discharge?