Yes Dragon Fruit can work as a laxative if you eat more than 2 or three in a day.
I know if I eat at least 2 dragon fruits in one day then I'm needing to poop soon after so yes dragon fruits can get your bowels moving.
The dragon fruit seeds have a strong laxative effect to them as well.