Answer :
I believe it is direct. Since, "a melon" and "peaches" are defined in the WHAT section.
Melon is a direct object because it comes after the verb and someone or something is not receiving it.
Subject+verb+who or what=direct object
Subject+verb+who or what=direct object