Commercial airline and breast pump?

Judy 🐰👓 • 🌞 24 years old, proud Navy wife. expecting our first baby in June 💙 👶🏽 IG@gls.xoxo
I'm traveling next month and I breastfeed my baby, we've always had trouble breastfeeding so I just pump and feed. Does anyone know if I can take my electric pump with me and did you pump on flight? Also I have the medela pump that has the battery operated charger and the regular one that hooks onto outlets which one was okay to pass through security? Thanks! 👌🏼any tips are welcome