Is anorexia a mental illness?

Dr
Ok I relize that question may sound completely dumb but bear with me. When went through my health history for my daughters new pediatrician I was asked if there was any mental illness in the family, I said yes, I have anorexia. And the nurse laughed (a little too hard) and told me that wasn't considered a mental illness. So now I'm confused, because it was my understanding that it was. So perhaps an eating disorder is a whole other catagory in technicality? Does anybody know?
I'm posting this in CC because if that nurse's stance had any truth then in guessing in going to get a lot of mixed responses. 
I feel that maybe the nurse was just rude and didn't believe in anorexia or something. But I'm very curious as to know the correct catagory for it. I don't like looking dumb.

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