Not eating enough while pregnant?

I’m 12 weeks pregnant and I didn’t used to get morning sickness often but I feel like I don’t eat enough because I’m not really hungry, just in pain. Now it seems like when I am hungry I’ll eat something and throw it up and then am too sick to eat anymore throughout the day. Not sure what to do? Thanks for anyone’s comments and help!