Blanch the beans. Heat the oven to 190°C (170°C fan). Bring a pan of salted water to the boil and cook the green beans for 3 minutes. Drain and plunge them into a bowl of cold water, then drain again.
Cook the shallots and mushrooms. Melt the butter in a large pan over medium heat. Add the shallots and mushrooms and cook for 6 minutes until golden and soft.
Build the sauce. Stir in the garlic, then sprinkle in the flour and cook for a minute. Pour in the white wine and let it bubble for a minute, then add the milk and cream a little at a time, stirring until the sauce is smooth and thick enough to coat a spoon. Season with nutmeg, salt and pepper.
Combine. Fold the green beans into the sauce and tip everything into a baking dish.
Top and bake. Mix the fried onions with the breadcrumbs and scatter them over the top. Bake for 20 minutes until bubbling, then bake for 8–10 minutes more until the topping is golden.
Rest and serve. Let it rest for 5 minutes before serving, so the sauce settles.