Castor Oil

I hear a lot about castor oil helping to start labor. Can it hurt the baby at all? I want to try it but I'm nervous. Dr said it fine but didnt tell me how much or how to take it and I just want do make sure it won't harm the baby.