Put the frozen spinach in a pot and cook it until it's completely thawed. Squeeze out excess water from the spinach to get it as dry as possible.
Peel the onions and dice them finely.
Cut the ham into small cubes.
Finely grate the nutmeg and Parmesan.