Hand grate the zucchini or use your grating attachment on your food processor.
Squeeze the excess water out of zucchini using a cheesecloth or clean, thin dishtowel. This is a super important step to squeeze as much water out as possible.
Put the oil in a skillet over high heat.
Cook zucchini for about 10 minutes, stirring often, until they start to brown.
Add the shallots and herbs to the pan. Stir to combine and then remove from the heat.
Put the ricotta, eggs, and cream in a large bowl and add the zucchini mixture. Mix well.
Transfer to baking dish (I used a pie/quiche dish) and bake for 30-35 minutes until top is golden brown.