Gastroscopy can be done during breastfeeding, but depending on the chosen gastroscopy modality, breastfeeding should be delayed to avoid the effects of anesthetics in the body on infants and children. Gastroscopy is the preferred method of examination for upper gastrointestinal tract lesions, as it can directly observe the true condition of the examined area and further clarify the diagnosis by performing pathological biopsy of the suspected lesion. Clinical gastroscopy is divided into general gastroscopy and painless gastroscopy. For general gastroscopy, local anesthetic and lubricating drugs are required, among which lidocaine is commonly used, and since lidocaine needs to be metabolized in the body, it is recommended to breastfeed after 48 hours; for painless gastroscopy, propofol is usually injected intravenously, which is relatively fast metabolized and will be excreted from the body in about 6 hours, so it is generally recommended to breastfeed after 24 hours. breastfeeding. Before doing gastroscopy, one should fast from food and water for more than 8 hours. 2-4 hours after the examination, one can have a liquid, light and easily digestible diet, avoiding spicy stimulation, and gradually transition to a normal diet if no gastrointestinal discomfort occurs.