In a bowl, beat the eggs, add the ricotta cheese and mix. Pour in the milk, add the flour, spices and mix until smooth.
Add potatoes to the resulting sauce and mix thoroughly. Place the potatoes in a baking dish and pour the remaining sauce evenly. Spread grated cheese on top. Bake the casserole in the oven at 180°C for at least 45 minutes.