Bariatric surgery

I am thinking about having a bariatric surgery done but I am curious about what the diet is. I’m really nervous to talk to a doctor about it. Can anyone tell me the diets and what to expect?