Many children have a problem of reflux (spitting/vomiting out the food) when they go to sleep. Certain sleep positions will help with this problem.
In younger infants, there can be multiple reasons for reflux:
Sleep solutions:
Here are Vomiting Causes, Types, Diagnosis, Treatment, Remedies, and Prevention.