LO randomly puking but acts normal

My 2 year old has been puking once randomly in the middle of the night but will go back to sleep. When they wake up they act normal other then having no or low appetite. Any ideas