Babies with thrush

My baby girl has it. Doc prescribed nystatin. She absolutely hates it. It makes her throw up. Any other way to get rid of this?