Apple juice for constipation

As

My baby (5mo) has been really backed up. Her pediatrician recommended 2 oz of apple juice not diluted. Has anyone given their baby straight apple juice and did it help?