Having to put your 2 year old under at the dentist.

My two year old has a few cavities. (We brush every morning and night, but still got them.) She will need to be put asleep to get them filled. Has anyone ever been through this? I’m extremely worried and clueless about it all. thank you!