Constipated baby- juice?

Alison • FTM to a baby girl at 35, business owner, gamer, ICD specialist and happy wife to a brilliant man!
Pediatrician recommended a bit of prune juice or apple juice to relieve my daughters constipation. He said she may get more cramps and discomfort at first. Has anyone else tried this? Effective? Immediate relief?