silly question , yogurt and yeast infection

this is a stupid question but I have heard some say to eat lots of yogurt to get rid of a yeast infection and then I heard some people put it directly on their vagina to get rid of it - which one is correct? 

Glow Resources

Let’s Glow

Glow is here for you on your path to pregnancy

Glow helps you navigate your fertility journey with smart tools, personalized insights, and guidance from medical experts who understand what matters most.

25+ million

Users

4.8 stars

200k+ app ratings

20+

Medical advisors