Short answer

Feeding apples upgrades a dragon. Save them for dragons you will keep — 5-star uniques, strong hybrids and limited dragons — and breed 1–3 star starters upward instead of feeding them.

What is reported

Pocket Tactics describes feeding a few apples to a dragon to upgrade it. The amounts per level are not published.

Who to feed

Dragon Feed? Why
1–3 star starters No They are replaced quickly; breed them upward instead
Dual-element hybrids Some Mid-game backbone, but you will replace them too
5-star uniques Yes Your long-term carries
6-star / limited Yes Reported not to upgrade well through breeding — see 6-star dragons

This is editorial advice, not tested values.

The usual mistake

New players pour food into their first dragon. It feels good for a few waves, then that dragon is outclassed by a hybrid and the food is gone.