Health care providers used to tell patients who were going to have surgery to avoid food and drinks after midnight before surgery. But eating certain foods and liquids before surgery is now known to help your body recover faster.