Ask beforehand if you will be given medications after your surgery. Check that these will be compatible with breastfeeding.
The mother will in most cases be able to breastfeed up until the time of surgery. If you need to fast for surgery, the anaesthetist will be able to arrange for you to receive fluids by a drip to help keep you hydrated and protect your milk supply.
Once you are conscious, breastfeeding is usually safe - discuss this with your surgeon and anaesthetist.
However, you may feel woozy and even nauseous. You will need someone (your partner, family member or a friend) to be with you to care for your baby.