In a rondeau or similar pot over low heat, sweat the onions in the olive oil until very tender, about 10 minutes. Add the garlic and cook until fragrant, about 30 seconds.
Add the eggplant and zucchini and continue to sweat gently until they begin to get tender and until the liquid has evaporated, 5 to 8 minutes, stirring occasionally.