Breastfeeding and surgery

I just found out that I'm going to need to have surgery within the next few weeks. I'm only 8 days PP & breastfeeding so my question is after anesthesia when will I be able to nurse again? I'm getting conflicting answers. My daughters pediatrician said she isn't worried about the anesthesia but more so about any narcotics they gave me ( I won't be taking any) but my doctor who will be doing the surgery was telling me to pump & dump for 3 days after. I plan to start a stockpile of milk but just wanting to know how much I really have to pump..
Just wondering if anyone has dealt with this before and what you did??

Glow Resources

Let’s Glow

Glow is here for you on your path to pregnancy

Glow helps you navigate your fertility journey with smart tools, personalized insights, and guidance from medical experts who understand what matters most.

25+ million

Users

4.8 stars

200k+ app ratings

20+

Medical advisors