The dragon fruit has aerial roots. It absorbs water and nutrients from the soil and the air. Aerial roots receive moisture from fog and damp air, as well as anchoring the plant to its support.
Dragon fruit requires plenty of water, but not too much. It doesn't want its roots drenched. Too much water, either from overwatering or extreme rainfall, might harm this plant.