Peel and finely dice onions and garlic. Heat the fat in a saucepan. Sauté onions and garlic, who also likes the ham, in them. Add the creamed spinach and stock. Cover and cook over medium heat for about 10 minutes.
If you want, you can roast the pine nuts in a pan without fat.
Add the cream to the spinach and bring to the boil. Season the sauce with salt, pepper and nutmeg.
Add the cooked tortellini or gnocchi to the sauce. First add the pine nuts in the plate.