What do fish eat in the Great Barrier Reef?

some fish eat coral...and some fish eat plants, while bigger fish eat smaller fish