how do you clean cloth diapers?

Fran • 27 yrs old
Please excuse my ignorance, but how do you clean cloth diapers? I imagine you wouldn't just toss them in the wash without scraping out the poo first? Thanks! I'm considering whether I would want to do cloth.