Cook the gnocchi according to the instructions on the packet.
Peel and dice beets and onions. Cut the apple unpeeled into cubes. Sweat the onion in oil until translucent, add the beets and fry for 10 minutes. Add the apple and fry for another 5 minutes. Season with thyme, salt and pepper. Mix with the gnocchi and sprinkle with cheese if necessary.