Generally, you can't eat too early after gastroscopy, otherwise it will hurt your stomach.
Guiding opinions:
Generally, you can eat after 6 hours of gastroscopy, but you need to eat soft rice such as porridge and noodles on the first day, steamed bread, rice and stir-fry after the second day, and you can eat normally after 3 days.