Few things onboard generate more confident misinformation than the toilet. People believe waste gets released over the countryside, that the blue liquid is what breaks it down, and that the roar when you press the button is the sound of it being sucked out of the plane. None of that is true, and what actually happens is more interesting.
Myth vs reality
How Airplane Toilets Work
Waste is released in flight
The blue liquid breaks it down
The flush noise is suction to the outside
A smell means a full tank
The tank stays sealed until a truck drains it on the ground
Modern vacuum toilets use very little of it, and mainly for sanitizing
It's cabin air rushing through the waste line
It usually means a leaking seal or a servicing error
Contrail
The Vacuum, Not the Water
Your toilet at home uses gravity and several liters of water. That wouldn't work well on a plane, where every liter weighs money in fuel and the whole thing tips backward on climb out.
Instead, aircraft use a vacuum system. The cabin is pressurized while the outside air is thin, and that pressure difference does the work. Press the button and a valve opens onto a pipe held at lower pressure, and the contents get pulled along the line into a sealed tank toward the rear of the aircraft. Almost no water is involved, just a small rinse of the bowl and a nonstick coating that helps everything slide.