I need opinions!

My daughter is 9 months and still wakes up at night to eat (I’ve been breastfeeding her since she was born) and her pediatrician says not to feed her from 11pm-5am and if she wakes up to eat to let her cry herself back to sleep. My s/o thinks the same but I really think that’s not right. She’s just hungry and wants to eat.

What do you guys think?

* Edit : thank you ladies so much! I hear her swallowing the milk and I don’t mind waking up and feeding her. I love breastfeeding and I don’t want to stop throughout the night. I just didn’t know what you ladies thought. I tried it one night and she cried for 30 minutes and I couldn’t calm her down or anything, once she got on my babas (boobs lol) she went to sleep.