Finely slice your onions and add them to a pan with the melted butter on a low heat. Cook for 30 - 40 minutes, stirring frequently, until caramelized. You may want to do this step ahead of time to cut down on cooking time.
Add the minced garlic and cook for another minute before adding your flour.
Cook off the flour for 1-2 minutes, then add the wine to deglaze the pan, cooking for 1-2 minutes.
Pour in the stock and add your seasonings, then add the gnocchi, spinach and double cream and mix everything together.
Top the gnocchi with the mozzarella, and then place the whole thing under the grill for 5 minutes until bubbling and golden.
