Diflucan during pregnancy

Coco
I have a yeast infection ... And the dr prescribed me a single dose of diflucan...I don't know if I want to take it or just do the ointment. I'm 26 weeks pregnant. Any experiences with this