Worms in apples

I’m in Vaughan and I have an apple tree that produces very delicious crunchy fresh fruit. My problem is the worms. What can I do? The organic, blemish free apples in the grocery store seem like a miracle!…