The Moon isn’t completely devoid of gravity, of course, but its pull is only around one-sixth of what it is on Earth. You can still do your business and watch it tumble to the ground (or, preferably, a bowl of some sort), but the whole “flushing” mechanism is something you’ll have to work out on your own.