Toddler eating question

All my son had today was yogurt and a mini muffin

I offered him other food throughout the day but he refused or put it in his mouth and spit it out.

Should I be worried ?? He’s sleeping now but I’m concerned he’s going to wake up starving.

Is he starving himself ? He’s 2. What do I do ?

Today I offered waffles and hard boiled egg a mini muffin (which he ate) pbj his favorite a banana pineapple Mac n cheese his other favorite applesauce. Had to force feed him the yogurt ( by force feed I mean I kept saying if you want your show later you have to take a bite and he would begrudgingly) and he kept gagging ... but he did eventually eat most of it.

What am I doing wrong ???