Wash the thyme, put something aside for garnishing. Remove the rest of the leaves, chop them and stir them into the cranberries.
Peel and grate the onion. Peel, wash and finely grate the potatoes. Mix both with eggs and flour. Season with salt and nutmeg.
Heat the oil in portions in a coated pan. Bake about 12 potato pancakes from the potato mixture. Place them side by side on a baking tray lined with baking paper.
Cut the cheese into thin slices and spread them on the grated cake. Gratinate under the hot grill of the oven (or at highest heat in the oven) until golden brown. Serve with cranberries.
Garnish with rest of thyme.